From e09760d365b02a39d48e992d6f1e1dc3a4171fd3 Mon Sep 17 00:00:00 2001 From: Brew Bot <86565977+WallBrewBot@users.noreply.github.com> Date: Sat, 21 Sep 2024 11:51:40 -0500 Subject: [PATCH] [bot] synced file(s) with Wall-Brew-Co/rebroadcast (#98) * [bot] synced local '.github/workflows/label.yml' with remote 'sources/github-actions/workflows/label.yml' Sourced from: https://github.com/Wall-Brew-Co/rebroadcast * [bot] synced local '.github/workflows/contributors.yml' with remote 'sources/github-actions/workflows/contributors.yml' Sourced from: https://github.com/Wall-Brew-Co/rebroadcast * [bot] synced local '.github/workflows/greetings.yml' with remote 'sources/github-actions/workflows/greetings.yml' Sourced from: https://github.com/Wall-Brew-Co/rebroadcast * [bot] synced local '.github/workflows/deploy_to_clojars.yml' with remote 'sources/github-actions/workflows/deploy_to_clojars.yml' Sourced from: https://github.com/Wall-Brew-Co/rebroadcast * [bot] synced local '.github/workflows/format.yml' with remote 'sources/github-actions/workflows/format.yml' Sourced from: https://github.com/Wall-Brew-Co/rebroadcast * [bot] synced local '.github/workflows/lint.yml' with remote 'sources/github-actions/workflows/lint.yml' Sourced from: https://github.com/Wall-Brew-Co/rebroadcast --- .github/workflows/contributors.yml | 2 ++ .github/workflows/deploy_to_clojars.yml | 2 ++ .github/workflows/format.yml | 3 ++ .github/workflows/greetings.yml | 2 ++ .github/workflows/label.yml | 2 ++ .github/workflows/lint.yml | 43 ++++++++++++++++++++++++- 6 files changed, 53 insertions(+), 1 deletion(-) 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