Skip to content

Commit 78ac48e

Browse files
committed
ci: align release workflows with current action refs
Normalize the release-please environment name and switch workflow actions to version tags for consistency with the template. Also fix the draft publish age format and stop auto-assigning the repository owner as a reviewer.
1 parent 3a1b62a commit 78ac48e

3 files changed

Lines changed: 14 additions & 15 deletions

File tree

template/.github/workflows/release-draft.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ jobs:
1818
if: startsWith(github.head_ref, 'release-please/') && github.event.pull_request.merged
1919
runs-on: ubuntu-latest
2020
environment:
21-
name: Release Please
21+
name: release-please
2222
deployment: false
2323
steps:
2424
- id: auth
2525
name: Auth
26-
uses: liblaf/actions/auth@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1
26+
uses: liblaf/actions/auth@v1
2727
with:
2828
app-id: ${{ vars.APP_ID }}
2929
private-key: ${{ secrets.PRIVATE_KEY }}
3030
- name: Checkout
31-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
31+
uses: actions/checkout@v6
3232
with:
3333
token: ${{ steps.auth.outputs.token }}
3434
- id: version
@@ -53,7 +53,7 @@ jobs:
5353
GH_TOKEN: ${{ steps.auth.outputs.token }}
5454
continue-on-error: true
5555
- name: Create release
56-
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2
56+
uses: softprops/action-gh-release@v2
5757
with:
5858
body: ${{ github.event.pull_request.body }}
5959
tag_name: ${{ steps.version.outputs.tag }}

template/.github/workflows/release-pr.yaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ jobs:
2828
version: ${{ steps.version.outputs.version }}
2929
steps:
3030
- name: Checkout
31-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
31+
uses: actions/checkout@v6
3232
with:
3333
fetch-depth: 0
3434
- name: Install git-cliff
35-
uses: taiki-e/install-action@de6f06126afb86b5250a16ff961c57360c5edccc # v2
35+
uses: taiki-e/install-action@v2
3636
with:
3737
tool: git-cliff
3838
- id: version
3939
name: Next version
40-
uses: liblaf/actions/next-version@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1
40+
uses: liblaf/actions/next-version@v1
4141
env:
4242
GIT_CLIFF_CONFIG_URL: ${{ env.GIT_CLIFF_CONFIG_URL }}
4343
GITHUB_TOKEN: ${{ github.token }}
@@ -53,21 +53,21 @@ jobs:
5353
if: needs.version.outputs.bumped == 'true'
5454
runs-on: ubuntu-latest
5555
environment:
56-
name: Release Please
56+
name: release-please
5757
deployment: false
5858
steps:
5959
- id: auth
6060
name: Auth
61-
uses: liblaf/actions/auth@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1
61+
uses: liblaf/actions/auth@v1
6262
with:
6363
app-id: ${{ vars.APP_ID }}
6464
private-key: ${{ secrets.PRIVATE_KEY }}
6565
- name: Checkout
66-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
66+
uses: actions/checkout@v6
6767
with:
6868
fetch-depth: 0
6969
- name: Install git-cliff
70-
uses: taiki-e/install-action@de6f06126afb86b5250a16ff961c57360c5edccc # v2
70+
uses: taiki-e/install-action@v2
7171
with:
7272
tool: git-cliff
7373
- name: Generate changelog
@@ -92,7 +92,7 @@ jobs:
9292
name: Bump package.json
9393
run: npm version '${{ needs.version.outputs.version }}' --no-git-tag-version
9494
- name: Create PR
95-
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8
95+
uses: peter-evans/create-pull-request@v8
9696
with:
9797
token: ${{ steps.auth.outputs.token }}
9898
commit-message: "chore(release): ${{ needs.version.outputs.tag }}"
@@ -105,4 +105,3 @@ jobs:
105105
automerge
106106
release-please
107107
assignees: ${{ github.repository_owner }}
108-
reviewers: ${{ github.repository_owner }}

template/.github/workflows/release-publish.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
contents: write
1616
runs-on: ubuntu-latest
1717
environment:
18-
name: Release Please
18+
name: release-please
1919
deployment: false
2020
steps:
2121
- id: auth
@@ -27,5 +27,5 @@ jobs:
2727
- name: Publish drafts
2828
uses: liblaf/actions/publish-drafts@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1
2929
with:
30-
older-than: 6h
30+
older-than: 6hr
3131
token: ${{ steps.auth.outputs.token }}

0 commit comments

Comments
 (0)