Skip to content

Instantly share code, notes, and snippets.

@amazingandyyy
Created June 21, 2021 04:53
Show Gist options
  • Save amazingandyyy/65d8021a95221b6982c12e4a79842959 to your computer and use it in GitHub Desktop.
Save amazingandyyy/65d8021a95221b6982c12e4a79842959 to your computer and use it in GitHub Desktop.
git-diff-in-gh-actions.yaml
- name: diff
id: diff
run: |
if [[ $(git diff --stat) != '' ]]; then
echo "::set-output name=files_changed::true"
fi
- name: Confirm secrets are updated - 🚀
if: steps.diff.outputs.files_changed == 'true'
run: xxxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment