-
Hi, I want to run a few steps, only if the deploy resulted in changes. Is there any way to do this? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
emmahsax
Jan 16, 2021
Replies: 2 comments 1 reply
-
The action emits deployment in the form of an environment variable that you can use to conditionally move your workflow onto the next step: https://github.com/JamesIves/github-pages-deploy-action#deployment-status |
Beta Was this translation helpful? Give feedback.
0 replies
-
Try something like this: - name: Deploy Site
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
.
.
.
- name: Continue
if: ${{ env.DEPLOYMENT_STATUS }} == "success"
run: echo "Continuing because deploy happened" |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
JamesIves
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try something like this: