Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: styfle/cancel-workflow-action
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ce17749
Choose a base ref
...
head repository: styfle/cancel-workflow-action
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d7e57e2
Choose a head ref
  • 7 commits
  • 5 files changed
  • 5 contributors

Commits on Dec 24, 2020

  1. Configuration menu
    Copy the full SHA
    b949c16 View commit details
    Browse the repository at this point in the history
  2. feat: default token to GitHub token (#46)

    * feat: default token to GitHub token
    
    * fix: use quotes for clarity
    henryiii authored Dec 24, 2020
    Configuration menu
    Copy the full SHA
    596f393 View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2021

  1. Allow matching SHA to be canceled (#50)

    Hi,
    
    I've started using your action and it is really useful!
    
    However, their was one use case for me that was not working:
    
    - I have a workflow which temporally build and deploy a version of my app on every `pull_request`.
    - I have a second workflow which cleanup the temporary deployment on `pull_request: types: [closed]`.
      - That second workflow call your action to cancel any build runs still running after the PR is closed.
    
    The problem is that it will not cancel the latest build run if I merge that commit directly; since they both have the same SHA.
    
    So I've added an option `allow_matching_sha` (default to `false`) which can disable that check and allow runs with the same sha on other workflows to be cancelled.
    
    So my second workflow looks like this:
    ```yaml
    on:
      pull_request:
        types: [closed]
    
    jobs:
      cleanup-after-pr-closed:
        name: Cleanup After PR Closed
        runs-on: ubuntu-latest
        steps:
          - name: Cancel build runs
            uses: ericmatte/cancel-workflow-action@match-sha
            with:
              allow_matching_sha: true
              workflow_id: '######'
    ```
    
    Cheers
    
    Co-authored-by: Steven <steven@ceriously.com>
    ericmatte and styfle authored Jan 11, 2021
    Configuration menu
    Copy the full SHA
    62b179c View commit details
    Browse the repository at this point in the history
  2. Add docs for ignore_sha (#52)

    Docs for PR #50
    styfle authored Jan 11, 2021
    Configuration menu
    Copy the full SHA
    99e363e View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2021

  1. Configuration menu
    Copy the full SHA
    277e407 View commit details
    Browse the repository at this point in the history
  2. Improve logs (#53)

    styfle authored Jan 12, 2021
    Configuration menu
    Copy the full SHA
    dfbe605 View commit details
    Browse the repository at this point in the history
  3. 0.7.0

    styfle committed Jan 12, 2021
    Configuration menu
    Copy the full SHA
    d7e57e2 View commit details
    Browse the repository at this point in the history
Loading