Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kibettheophilus authored Sep 22, 2024
1 parent 7204ccb commit 0a40ad0
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,17 @@ on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
cancel-previous:
name: Cancel Previous Jobs
permissions:
contents: read
actions: write
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Build
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
concurrency:
group: ${{ github.workflow }} - ${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
name: Lint
permissions:
contents: read
runs-on: ubuntu-latest
needs: cancel-previous
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 0a40ad0

Please sign in to comment.