Created
June 21, 2021 04:53
-
-
Save amazingandyyy/65d8021a95221b6982c12e4a79842959 to your computer and use it in GitHub Desktop.
git-diff-in-gh-actions.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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