Skip to content

Commit 2931bb0

Browse files
committed
chore: fix setup of git user in release scripts, improve names
1 parent 5b3467b commit 2931bb0

5 files changed

+17
-17
lines changed

.github/workflows/release_promote-lts.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release > Promote LTS
1+
name: 0. Release > Promote LTS
22

33
on:
44
workflow_dispatch:

.github/workflows/release_publish-beta.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release > Beta
1+
name: 0. Release > Beta
22

33
on:
44
workflow_dispatch:
@@ -46,10 +46,6 @@ jobs:
4646
run: |
4747
echo "Releases may only be performed from the main branch."
4848
exit 1
49-
- name: Make sure git user is setup
50-
run: |
51-
git config --local user.email ${{ secrets.GH_DEPLOY_EMAIL }}
52-
git config --local user.name ${{ secrets.GH_DEPLOY_NAME }}
5349
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
5450
with:
5551
fetch-tags: true
@@ -58,6 +54,10 @@ jobs:
5854
fetch-depth: 3
5955
ref: beta
6056
- run: git fetch origin main --depth=1
57+
- name: Make sure git user is setup
58+
run: |
59+
git config --local user.email ${{ secrets.GH_DEPLOY_EMAIL }}
60+
git config --local user.name ${{ secrets.GH_DEPLOY_NAME }}
6161
- name: Get last beta version from package.json
6262
if: github.event.inputs.kind == 'mirror'
6363
uses: sergeysova/jq-action@v2

.github/workflows/release_publish-canary.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release > Canary
1+
name: 0. Release > Canary
22

33
on:
44
workflow_dispatch:

.github/workflows/release_publish-lts.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release > LTS
1+
name: 0. Release > LTS
22

33
on:
44
workflow_dispatch:
@@ -34,17 +34,17 @@ jobs:
3434
run: |
3535
echo "Releases may only be performed from the main branch."
3636
exit 1
37-
- name: Make sure git user is setup
38-
run: |
39-
git config --local user.email ${{ secrets.GH_DEPLOY_EMAIL }}
40-
git config --local user.name ${{ secrets.GH_DEPLOY_NAME }}
4137
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
4238
with:
4339
fetch-tags: true
4440
progress: false
4541
token: ${{ secrets.GH_DEPLOY_TOKEN }}
4642
fetch-depth: 3
4743
ref: ${{ github.event.inputs.source-branch }}
44+
- name: Make sure git user is setup
45+
run: |
46+
git config --local user.email ${{ secrets.GH_DEPLOY_EMAIL }}
47+
git config --local user.name ${{ secrets.GH_DEPLOY_NAME }}
4848
- uses: ./.github/actions/setup
4949
with:
5050
install: true

.github/workflows/release_publish-stable.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release > Stable
1+
name: 0. Release > Stable
22

33
on:
44
workflow_dispatch:
@@ -58,10 +58,6 @@ jobs:
5858
run: |
5959
echo "Releases may only be performed from the main branch."
6060
exit 1
61-
- name: Make sure git user is setup
62-
run: |
63-
git config --local user.email ${{ secrets.GH_DEPLOY_EMAIL }}
64-
git config --local user.name ${{ secrets.GH_DEPLOY_NAME }}
6561
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
6662
with:
6763
fetch-tags: true
@@ -71,6 +67,10 @@ jobs:
7167
ref: release
7268
## Ensure we have a copy of the source branch
7369
- run: git fetch origin ${{ github.event.inputs.source-branch }} --depth=1
70+
- name: Make sure git user is setup
71+
run: |
72+
git config --local user.email ${{ secrets.GH_DEPLOY_EMAIL }}
73+
git config --local user.name ${{ secrets.GH_DEPLOY_NAME }}
7474
- name: Reset the Release Branch
7575
if: github.event.inputs.source-branch != 'release' && (github.event.inputs.is-cycle-start == 'true' || github.event.inputs.from-version != null)
7676
run: git reset --hard origin/${{ github.event.inputs.source-branch }} && git push origin release -f

0 commit comments

Comments
 (0)