We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi.
I implemented it in my fork, but for some reason the previous workflows don't stop if I updated the PR. Part of main.yml:
name: CI on: push: branches: - 'master' - 'develop' pull_request: branches: - '*' jobs: build: runs-on: ubuntu-latest steps: - name: Cancel previous runs uses: styfle/[email protected] with: access_token: ${{ github.token }} - uses: actions/checkout@v2 ...
cancel.yml:
name: Cancel on: workflow_run: workflows: ["CI"] types: - requested jobs: cancel: runs-on: ubuntu-latest steps: - uses: styfle/[email protected] with: workflow_id: ${{ github.event.workflow.id }}
When creating a PR from the current repository, it works fine. But when creating a PR from a fork. No reaction. From main.yml I got an error:
main.yml
Found 6 runs for workflow 4551668 on branch check-workflow-canceling - https://github.com/dvkruchinin/cvat/actions/runs/726508310 - https://github.com/dvkruchinin/cvat/actions/runs/726502076 - https://github.com/dvkruchinin/cvat/actions/runs/726489962 - https://github.com/dvkruchinin/cvat/actions/runs/726361555 - https://github.com/dvkruchinin/cvat/actions/runs/726315700 - https://github.com/dvkruchinin/cvat/actions/runs/726311604 with 2 runs to cancel. Canceling run: { id: 726502076, head_sha: '49509b67436b6704a7151bcdfd670e2b079622d4', status: 'in_progress', html_url: 'https://github.com/dvkruchinin/cvat/actions/runs/726502076' } Error while canceling workflow_id 4551668: Resource not accessible by integration
Please tell me what I'm doing wrong?
The text was updated successfully, but these errors were encountered:
cc @ericmatte who added this in #50
cc @pllim who added this in #55
Sorry, something went wrong.
Don't put the cancel in main.yml CI. It won't work there. Check the log in Cancel. I bet that one still work.
tl:dr; delete cancel step from main.yml
I don't think cancelling in a PR works at all. The access_token: ${{ github.token }} isn't provided on a forked PR is it?
access_token: ${{ github.token }}
No branches or pull requests
Hi.
I implemented it in my fork, but for some reason the previous workflows don't stop if I updated the PR.
Part of main.yml:
cancel.yml:
When creating a PR from the current repository, it works fine.
But when creating a PR from a fork. No reaction.
From
main.yml
I got an error:Please tell me what I'm doing wrong?
The text was updated successfully, but these errors were encountered: