Skip to content

Commit 4541303

Browse files
committed
ci: improve the weekly workflow
1 parent c71f9af commit 4541303

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.github/workflows/daily.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: raven-actions/bot-details@v1
2121
id: bot-details
2222
with:
23-
bot-slug-name: 'mirakc-update-deps'
23+
bot-slug-name: mirakc-update-deps
2424
- uses: actions/checkout@v3
2525
with:
2626
submodules: recursive

.github/workflows/weekly.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,17 @@ jobs:
88
release:
99
runs-on: ubuntu-latest
1010
steps:
11+
- uses: raven-actions/bot-details@v1
12+
id: bot-details
1113
- uses: actions/checkout@v3
1214
with:
1315
submodules: recursive
1416
# Fetch all history for all tags and branches
1517
fetch-depth: 0
1618
- name: git config
1719
run: |
18-
# https://github.com/orgs/community/discussions/26560#discussioncomment-3252339
19-
BOT_NAME='github-actions[bot]'
20-
BOT_ID="$(curl https://api.github.com/users/$(echo -n github-actions[bot] | jq -sRr '@uri') -sG | jq -r '.id')"
21-
git config user.name "$BOT_NAME"
22-
git config user.email "$BOT_ID+$BOT_NAME@users.noreply.github.com"
20+
git config user.name "${{ steps.bot-details.outputs.name }}"
21+
git config user.email "${{ steps.bot-details.outputs.email }}"
2322
- run: |
2423
TAG="$(git describe --tags --abbrev=0)"
2524
if git diff --quiet "$TAG"

0 commit comments

Comments
 (0)