Skip to content
Compare
Choose a tag to compare
@paescuj paescuj released this 22 Sep 06:58
· 26 commits to master since this release
16e4525

Various optimizations:

  • Check all inputs before doing any API requests
  • Stricter check for doNotSkip input
  • Exclude current workflow run from list of all workflow runs
  • Get rid of redundant and unnecessary lines
  • Add some explaining comments
  • Fix bug with empty head_repository
  • Action might be a bit faster 🚀

Breaking changes:

  • Previously, on input and API request errors the action might have exited successfully but with outputs should_skip = false and reason = no_workflow_information. Now, the action will exit with an error instead.

    To make sure that subsequent jobs will not be skipped in such cases it's recommended to set continue-on-error: true in the skip-duplicate-actions job.
    Note: This has already been recommended in the past regardless of this change.

  • The structure of the skipped_by output (also in paths_filter) has slightly changed for the sake of consistency and alignment with GitHub API:

    • runId is now id
    • html_url is now htmlUrl
    • Full example:
      {
       "id": 1709469369,
       "runNumber": 737,
       "event": "pull_request",
       "treeHash": "e3434bb7aeb3047d7df948f09419ac96cf03d73e",
       "commitHash": "4a0432e823468ecff81a978165cb35586544c795",
       "status": "completed",
       "conclusion": "success",
       "htmlUrl": "https://github.com/fkirc/skip-duplicate-actions/actions/runs/1709469369",
       "branch": "master",
       "repo": "fkirc/skip-duplicate-actions",
       "workflowId": 2640563,
       "createdAt": "2022-01-17T18:56:06Z"
      }

Other changes:

  • Update dependencies

Full Changelog: v4...v5.0.0