Skip to content

Commit

Permalink
Update data and commit changes to head branch
Browse files Browse the repository at this point in the history
  • Loading branch information
njahn82 committed Jul 16, 2024
1 parent 0336cbb commit 253e64e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/update-data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ on:
push:
branches-ignore:
- main
pull_request:
types:
- opened
- synchronize
branches-ignore:
- main

name: cicd

Expand Down Expand Up @@ -67,6 +73,10 @@ jobs:
DATE=$(date +'%Y-%m-%d %H:%M:%S')
git add data/
git commit --allow-empty -m "Auto-update of the data package on $DATE" -a
- name: Update branch
if: env.result == '1'
run: |
git pull origin ${{ github.head_ref }}
- name: Push changes
if: env.result == '1'
Expand Down

0 comments on commit 253e64e

Please sign in to comment.