Skip to content

Commit

Permalink
Merge pull request #120 from tonygard-indecon/gh-actions_tkg
Browse files Browse the repository at this point in the history
Cleanup base github action workflows
  • Loading branch information
knoiva-indecon authored Dec 12, 2023
2 parents 3d0fac0 + 7a23b14 commit 40b0957
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 16 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/update_base_data.yml
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
16 changes: 0 additions & 16 deletions FrEDI/.github/workflows/greetings.yml

This file was deleted.

0 comments on commit 40b0957

Please sign in to comment.