Skip to content

Getting changes since last successful workflow run? #1735

Answered by jackton1
depsypher asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @depsypher, I believe this feature is highlighted in the example

      - name: Get changed files
        id: changed-files
        uses: tj-actions/changed-files@v40
        # To compare changes between the current commit and the last pushed remote commit set `since_last_remote_commit: true`. e.g
         with:
           since_last_remote_commit: true 

In your case however I don’t think you’ll need to use this input because as you mentioned changes from recently pushed commits would not be compared when only comparing the last remote commit to the current one.

You can use the defaults with pull_request events or optionally specify a base_sha (supports branch or commit SHA) which would…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by jackton1
Comment options

You must be logged in to vote
2 replies
@jackton1
Comment options

@depsypher
Comment options

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