[BUGFIX] Fix Camera Editor timeline displaying 0 instead of 10 #1297
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # When a pull request is merged, cancel all queued workflows for that branch | |
| # This helps to ensure workers focus on the master branch. | |
| name: Cancel queued workflows on PR merge | |
| on: | |
| pull_request: | |
| types: | |
| - closed | |
| jobs: | |
| cancel_stuff: | |
| if: github.event.pull_request.merged == true | |
| runs-on: build-set | |
| permissions: | |
| actions: write | |
| steps: | |
| - name: Cancel queued workflows for ${{ github.event.pull_request.head.ref }} | |
| uses: actions/github-script@v8 | |
| with: | |
| result-encoding: string | |
| retries: 3 | |
| script: | | |
| let branch_workflows = await github.rest.actions.listWorkflowRuns({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| workflow_id: "build-game.yml", | |
| status: "queued", | |
| branch: "${{ github.event.pull_request.head.ref }}" | |
| }); | |
| let runs = branch_workflows.data.workflow_runs; | |
| runs.forEach((run) => { | |
| github.rest.actions.cancelWorkflowRun({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| run_id: run.id | |
| }); | |
| }); | |
| console.log(runs); |