diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.yml index f21009e..a92533d 100644 --- a/.github/workflows/contributors.yml +++ b/.github/workflows/contributors.yml @@ -9,6 +9,8 @@ on: jobs: contributors: + # This job requires the Wall Brew Bot Token, so it is only run on non-forked repositories + if: github.repository_owner == 'Wall-Brew-Co' runs-on: ubuntu-latest steps: - uses: wow-actions/contributors-list@v1 diff --git a/.github/workflows/deploy_to_clojars.yml b/.github/workflows/deploy_to_clojars.yml index 8733d3f..78d5561 100644 --- a/.github/workflows/deploy_to_clojars.yml +++ b/.github/workflows/deploy_to_clojars.yml @@ -6,6 +6,8 @@ on: jobs: deploy: + # This job requires the Wall Brew Bot Token, so it is only run on non-forked repositories + if: github.repository_owner == 'Wall-Brew-Co' runs-on: ubuntu-latest diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 442e0d9..3ad670e 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -4,6 +4,9 @@ on: [pull_request] jobs: formatting: + # This job requires the Wall Brew Bot Token, so it is only run on non-forked repositories + if: github.repository_owner == 'Wall-Brew-Co' + runs-on: ubuntu-latest steps: diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index b235758..e9c4968 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -4,6 +4,8 @@ on: [pull_request, issues] jobs: greeting: + # This job requires the Wall Brew Bot Token, so it is only run on non-forked repositories + if: github.repository_owner == 'Wall-Brew-Co' runs-on: ubuntu-latest steps: - uses: actions/first-interaction@v1 diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index fe27495..cc58936 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -4,6 +4,8 @@ on: [pull_request] jobs: label: + # This job requires the Wall Brew Bot Token, so it is only run on non-forked repositories + if: github.repository_owner == 'Wall-Brew-Co' runs-on: ubuntu-latest diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index bb978bd..ec365ca 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,8 +1,12 @@ name: Linter -on: [pull_request, workflow_dispatch] + +on: ["push", "workflow_dispatch", "pull_request"] jobs: spell-check: + # This job requires the Wall Brew Bot Token, so it is only run on non-forked repositories + if: github.repository_owner == 'Wall-Brew-Co' + runs-on: ubuntu-latest steps: @@ -23,6 +27,9 @@ jobs: # Brewing applications support both US and non-US English clj-kondo: + # This job requires the Wall Brew Bot Token, so it is only run on non-forked repositories + if: github.repository_owner == 'Wall-Brew-Co' + runs-on: ubuntu-latest steps: @@ -48,8 +55,42 @@ jobs: with: ref: ${{ github.head_ref }} + - name: Cache maven dependencies + uses: actions/cache@v4 + env: + cache-name: cache-maven + with: + path: ~/.m2 + save-always: true + key: ${{ runner.os }}-clj-lint-sealog-${{ hashFiles('**/project.clj') }} + restore-keys: | + ${{ runner.os }}-clj + - name: Validate Sealog Entries run: lein sealog check + bouncer: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v4.1.7 + with: + ref: ${{ github.head_ref }} + + - name: Cache maven dependencies + uses: actions/cache@v4 + env: + cache-name: cache-maven + with: + path: ~/.m2 + save-always: true + key: ${{ runner.os }}-clj-lint-bouncer-${{ hashFiles('**/project.clj') }} + restore-keys: | + ${{ runner.os }}-clj + + - name: Validate Sealog Entries + run: lein bouncer check + # This file was automatically copied and populated by rebroadcast # Do not edit this file directly, instead modify the source at https://github.com/Wall-Brew-Co/rebroadcast/blob/master/sources/github-actions/workflows/lint.yml