diff --git a/.config/copier/.copier-answers.release.yaml b/.config/copier/.copier-answers.release.yaml index db6baa2..d90e582 100644 --- a/.config/copier/.copier-answers.release.yaml +++ b/.config/copier/.copier-answers.release.yaml @@ -1,4 +1,4 @@ # This file is @generated by . # DO NOT EDIT! -_commit: v0.2.6 +_commit: v0.2.8 _src_path: gh:liblaf/copier-release diff --git a/.config/copier/.copier-answers.shared.yaml b/.config/copier/.copier-answers.shared.yaml index 79bff3d..52272da 100644 --- a/.config/copier/.copier-answers.shared.yaml +++ b/.config/copier/.copier-answers.shared.yaml @@ -1,6 +1,6 @@ # This file is @generated by . # DO NOT EDIT! -_commit: v0.2.8 +_commit: v0.2.9 _src_path: gh:liblaf/copier-share author_email: 30631553+liblaf@users.noreply.github.com author_name: liblaf diff --git a/.github/workflows/release-draft.yaml b/.github/workflows/release-draft.yaml index 209eb1e..960ff8e 100644 --- a/.github/workflows/release-draft.yaml +++ b/.github/workflows/release-draft.yaml @@ -18,12 +18,12 @@ jobs: if: startsWith(github.head_ref, 'release-please/') && github.event.pull_request.merged runs-on: ubuntu-latest environment: - name: Release Please + name: release-please deployment: false steps: - id: auth name: Auth - uses: liblaf/actions/auth@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1 + uses: liblaf/actions/auth@12ffbdf8f37ab1ff07565b44b643fd8433621cd7 # v1 with: app-id: ${{ vars.APP_ID }} private-key: ${{ secrets.PRIVATE_KEY }} diff --git a/.github/workflows/release-pr.yaml b/.github/workflows/release-pr.yaml index 6e1e3c5..45fa2ee 100644 --- a/.github/workflows/release-pr.yaml +++ b/.github/workflows/release-pr.yaml @@ -32,12 +32,12 @@ jobs: with: fetch-depth: 0 - name: Install git-cliff - uses: taiki-e/install-action@6ef672efc2b5aabc787a9e94baf4989aa02a97df # v2 + uses: taiki-e/install-action@7a562dfa955aa2e4d5b0fd6ebd57ff9715c07b0b # v2 with: tool: git-cliff - id: version name: Next version - uses: liblaf/actions/next-version@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1 + uses: liblaf/actions/next-version@12ffbdf8f37ab1ff07565b44b643fd8433621cd7 # v1 env: GIT_CLIFF_CONFIG_URL: ${{ env.GIT_CLIFF_CONFIG_URL }} GITHUB_TOKEN: ${{ github.token }} @@ -53,12 +53,12 @@ jobs: if: needs.version.outputs.bumped == 'true' runs-on: ubuntu-latest environment: - name: Release Please + name: release-please deployment: false steps: - id: auth name: Auth - uses: liblaf/actions/auth@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1 + uses: liblaf/actions/auth@12ffbdf8f37ab1ff07565b44b643fd8433621cd7 # v1 with: app-id: ${{ vars.APP_ID }} private-key: ${{ secrets.PRIVATE_KEY }} @@ -67,7 +67,7 @@ jobs: with: fetch-depth: 0 - name: Install git-cliff - uses: taiki-e/install-action@6ef672efc2b5aabc787a9e94baf4989aa02a97df # v2 + uses: taiki-e/install-action@7a562dfa955aa2e4d5b0fd6ebd57ff9715c07b0b # v2 with: tool: git-cliff - name: Generate changelog @@ -105,4 +105,3 @@ jobs: automerge release-please assignees: ${{ github.repository_owner }} - reviewers: ${{ github.repository_owner }} diff --git a/.github/workflows/release-publish.yaml b/.github/workflows/release-publish.yaml index e34c622..7ee7249 100644 --- a/.github/workflows/release-publish.yaml +++ b/.github/workflows/release-publish.yaml @@ -15,7 +15,7 @@ jobs: contents: write runs-on: ubuntu-latest environment: - name: Release Please + name: release-please deployment: false steps: - id: auth @@ -27,5 +27,5 @@ jobs: - name: Publish drafts uses: liblaf/actions/publish-drafts@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1 with: - older-than: 6h + older-than: 6hr token: ${{ steps.auth.outputs.token }} diff --git a/.github/workflows/shared-approve.yaml b/.github/workflows/shared-approve.yaml new file mode 100644 index 0000000..6417ba3 --- /dev/null +++ b/.github/workflows/shared-approve.yaml @@ -0,0 +1,38 @@ +# This file is @generated by . +# DO NOT EDIT! + +name: Shared / Approve + +on: + schedule: + - cron: "0 0 * * 0" # Runs at 00:00, only on Sunday + workflow_dispatch: + +env: + FORCE_COLOR: 1 + +jobs: + approve: + name: Approve + runs-on: ubuntu-latest + environment: + name: approve + deployment: false + steps: + - id: auth + name: Auth + uses: liblaf/actions/auth@12ffbdf8f37ab1ff07565b44b643fd8433621cd7 # v1 + with: + app-id: ${{ vars.APP_ID }} + private-key: ${{ secrets.PRIVATE_KEY }} + - name: Approve + uses: liblaf/actions/approve@12ffbdf8f37ab1ff07565b44b643fd8433621cd7 # v1 + with: + approve-token: ${{ steps.auth.outputs.token }} + label: ${{ matrix.label }} + strategy: + matrix: + label: + - copier + - release-please + fail-fast: false diff --git a/.github/workflows/shared-copier-update.yaml b/.github/workflows/shared-copier-update.yaml index 2af866f..9dc2a3f 100644 --- a/.github/workflows/shared-copier-update.yaml +++ b/.github/workflows/shared-copier-update.yaml @@ -5,7 +5,7 @@ name: Shared / Copier Update on: schedule: - - cron: "0 0 * * 0" # Runs at 00:00, only on Sunday + - cron: "0 0 * * 6" # Runs at 00:00, only on Saturday workflow_dispatch: env: @@ -20,12 +20,12 @@ jobs: pull-requests: write runs-on: ubuntu-latest environment: - name: Copier + name: copier deployment: false steps: - id: auth name: Auth - uses: liblaf/actions/auth@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1 + uses: liblaf/actions/auth@12ffbdf8f37ab1ff07565b44b643fd8433621cd7 # v1 with: app-id: ${{ vars.APP_ID }} private-key: ${{ secrets.PRIVATE_KEY }} @@ -59,4 +59,3 @@ jobs: automerge copier assignees: ${{ github.repository_owner }} - reviewers: ${{ github.repository_owner }} diff --git a/.github/workflows/shared-mega-linter.yaml b/.github/workflows/shared-mega-linter.yaml index 22b7c04..b421a27 100644 --- a/.github/workflows/shared-mega-linter.yaml +++ b/.github/workflows/shared-mega-linter.yaml @@ -16,7 +16,6 @@ on: env: FORCE_COLOR: 1 - GIT_COMMIT_MESSAGE: "chore(mega-linter): apply linters automatic fixes" jobs: mega-linter: @@ -27,7 +26,7 @@ jobs: pull-requests: write runs-on: ubuntu-latest environment: - name: MegaLinter + name: mega-linter deployment: false outputs: pull-request-url: ${{ steps.pr.outputs.pull-request-url }} @@ -66,20 +65,19 @@ jobs: uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8 with: token: ${{ steps.auth.outputs.token }} - commit-message: ${{ env.GIT_COMMIT_MESSAGE }} + commit-message: "chore(mega-linter): apply linters automatic fixes" branch: mega-linter/${{ github.head_ref || github.ref_name }} delete-branch: true sign-commits: true - title: ${{ env.GIT_COMMIT_MESSAGE }} + title: "chore(mega-linter): apply linters automatic fixes" body-path: ${{ runner.temp }}/megalinter-report.md labels: |- automerge mega-linter assignees: ${{ github.repository_owner }} - reviewers: ${{ github.repository_owner }} - review: - name: Review + approve: + name: Approve permissions: pull-requests: write needs: @@ -87,11 +85,17 @@ jobs: if: needs.mega-linter.outputs.pull-request-url runs-on: ubuntu-latest environment: - name: Review + name: approve deployment: false steps: - - name: Review - uses: liblaf/actions/review@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1 + - id: auth + name: Auth + uses: liblaf/actions/auth@12ffbdf8f37ab1ff07565b44b643fd8433621cd7 # v1 + with: + app-id: ${{ vars.APP_ID }} + private-key: ${{ secrets.PRIVATE_KEY }} + - name: Approve + uses: liblaf/actions/approve@12ffbdf8f37ab1ff07565b44b643fd8433621cd7 # v1 with: + approve-token: ${{ steps.auth.outputs.token }} pull: ${{ needs.mega-linter.outputs.pull-request-url }} - review-token: ${{ secrets.REVIEW_TOKEN }} diff --git a/.github/workflows/shared-review.yaml b/.github/workflows/shared-review.yaml deleted file mode 100644 index 80dc7ca..0000000 --- a/.github/workflows/shared-review.yaml +++ /dev/null @@ -1,33 +0,0 @@ -# This file is @generated by . -# DO NOT EDIT! - -name: Shared / Review - -on: - schedule: - # Run on Sunday at 04:00 to allow other weekly workflows to complete first - - cron: "0 4 * * 0" - workflow_dispatch: - -env: - FORCE_COLOR: 1 - -jobs: - review: - name: Review - runs-on: ubuntu-latest - environment: - name: Review - deployment: false - steps: - - name: Review - uses: liblaf/actions/review@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1 - with: - label: ${{ matrix.label }} - review-token: ${{ secrets.REVIEW_TOKEN }} - strategy: - matrix: - label: - - copier - - release-please - fail-fast: false