Skip to content

Commit

Permalink
ci: fix daily CI github token? (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
sargunv authored Dec 27, 2024
1 parent db24ad6 commit d31583b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ on:
pull_request:
workflow_dispatch:

concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true

jobs:
check-format:
runs-on: "ubuntu-latest"
Expand Down Expand Up @@ -111,11 +107,3 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- run: "echo 'All checks passed!'"

# https://github.com/orgs/community/discussions/8336
delete-cancelled-runs:
runs-on: "ubuntu-latest"
steps:
- uses: "MercuryTechnologies/[email protected]"
with:
workflow-file: "ci.yml"
1 change: 1 addition & 0 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
- uses: "octokit/[email protected]"
id: "check-last-run"
with:
token: "${{ secrets.GITHUB_TOKEN }}"
route: "GET /repos/${{github.repository}}/actions/workflows/daily.yml/runs?per_page=1&status=completed"
outputs:
last_sha: "${{ fromJson(steps.check-last-run.outputs.data).workflow_runs[0].head_sha }}"
Expand Down

0 comments on commit d31583b

Please sign in to comment.