-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #120 from tonygard-indecon/gh-actions_tkg
Cleanup base github action workflows
- Loading branch information
Showing
2 changed files
with
28 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Update Base System Data | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
fredi_data_branches: | ||
type: string | ||
description: Which data only branch of FrEDI_data to pull in data from? (i.e. data_only_branch_state_initial) | ||
|
||
|
||
jobs: | ||
get_data: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Commit results | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Actions" | ||
git pull --depth=1 --ff https://github.com/USEPA/FrEDI_Data.git ${{ github.event.inputs.fredi_data_branches }} --allow-unrelated-histories | ||
mv data/tmp_sysdata.rda FrEDI/R/sysdata.rda | ||
git branch --show-current | ||
git add FrEDI/R/sysdata.rda | ||
git rm -r data | ||
git pull origin ${{ github.head_ref }} --autostash --rebase -X ours | ||
git status | ||
git commit -am "add new sysdata.rda from ${{ github.event.inputs.fredi_data_branches }}" | ||
git push |
This file was deleted.
Oops, something went wrong.