Skip to content

Commit

Permalink
Adds steps to regsync action to check if there are changes to regsync…
Browse files Browse the repository at this point in the history
….yaml before commiting it
  • Loading branch information
lucasmlp committed Oct 23, 2023
1 parent d7cefbf commit d071ad9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/regsync-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,23 @@ jobs:
make pull-scripts
make regsync
- name: Check for modifications in regsync.yaml
id: check_changes
run: |
git diff --quiet regsync.yaml || echo "::set-output name=changed::true"
- name: Commit files
if: steps.check_changes.outputs.changed == 'true'
run: |
git add regsync.yaml
git commit -m "Updating resync.yaml"
git push
- name: No changes in regsync.yaml
if: steps.check_changes.outputs.changed != 'true'
run: |
echo "regsync.yaml is the same"
- name: Install Regsync
run: |
curl --silent --fail --location --output regsync https://github.com/regclient/regclient/releases/download/v0.5.1/regsync-linux-amd64
Expand Down

0 comments on commit d071ad9

Please sign in to comment.