diff --git a/.github/workflows/regsync-config.yaml b/.github/workflows/regsync-config.yaml index db5e061dfa..3f6d02aba6 100644 --- a/.github/workflows/regsync-config.yaml +++ b/.github/workflows/regsync-config.yaml @@ -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