Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow file names still supported? #41

Closed
kroikie opened this issue Nov 9, 2020 · 3 comments
Closed

Workflow file names still supported? #41

kroikie opened this issue Nov 9, 2020 · 3 comments

Comments

@kroikie
Copy link

kroikie commented Nov 9, 2020

I have tried using workflow file names in my cancel.yml. However none of workflows seem to be identified when running via the file name.

Here is my cancel.yml file:

name: cancel
on: [push]
jobs:
  cancel:
    name: 'Cancel Previous Runs'
    runs-on: ubuntu-latest
    timeout-minutes: 3
    steps:
      - uses: styfle/cancel-workflow-action@0.6.0
        with:
          workflow_id: 'app.yml, app-deploy.yml, proxy-deploy.yml'
          access_token: ${{ github.token }}

When I replaced the workflow file names with the workflow IDs the running actions were canceled as expected. I also had a look at the source and did not see any conversion from file name to workflow ID.

Maybe I'm not understanding how to use the file names so any info here would be appreciated.

@styfle
Copy link
Owner

styfle commented Nov 9, 2020

Its a feature of GitHub's API that @palasha found in PR #39.

I also tested it works in PR #40.

@styfle styfle closed this as completed Nov 17, 2020
@kroikie
Copy link
Author

kroikie commented Nov 18, 2020

Thanks for the response I'll give it another try.

@mzgubic
Copy link

mzgubic commented Jun 1, 2021

Try

workflow_id: app.yml, app-deploy.yml, proxy-deploy.yml

instead of

workflow_id: 'app.yml, app-deploy.yml, proxy-deploy.yml'

i.e. without the commas - that worked for me. It would be great to have an example in the README

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants