Skip to content

Running a step only if the deploy resulted in a new commit (changed files) #494

Answered by emmahsax
tiagoad asked this question in Q&A
Discussion options

You must be logged in to vote

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"

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Pike
Comment options

Answer selected by JamesIves
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants