Skip to content

Commit 10a2414

Browse files
renovate[bot]SigureMoShigureNyako
authored
⬆️ deps: Update dependency @actions/core to v3 (#69)
Co-authored-by: SigureMo <sigure.qaq@gmail.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: ShigureNyako <shigure_nyako@outlook.com>
1 parent 697b145 commit 10a2414

File tree

4 files changed

+65
-35
lines changed

4 files changed

+65
-35
lines changed

.github/workflows/update-dist.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
- name: Checkout
2222
id: checkout
2323
uses: actions/checkout@v6
24+
with:
25+
ref: ${{ github.head_ref }}
26+
token: ${{ secrets.UPDATE_DIST_TOKEN }}
2427

2528
- name: Install pnpm
2629
uses: pnpm/action-setup@v4
@@ -43,17 +46,20 @@ jobs:
4346
# expected.
4447
- name: Commit Updated dist/
4548
id: commit
49+
env:
50+
GH_TOKEN: ${{ secrets.UPDATE_DIST_TOKEN }}
4651
run: |
4752
if [ ! -d dist/ ]; then
4853
echo "Expected dist/ directory does not exist. See status below:"
4954
ls -la ./
5055
exit 1
5156
fi
5257
if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then
53-
git config user.name "github-actions[bot]"
54-
git config user.email "github-actions[bot]@users.noreply.github.com"
58+
git config user.name "ShigureNyako"
59+
git config user.email "shigure_nyako@outlook.com"
5560
git add dist/
5661
git commit -m "🍱 chore: update transpiled JavaScript in dist/"
62+
git push
5763
else
5864
echo "No changes detected in dist/. No commit necessary."
5965
fi

dist/index.js

Lines changed: 24 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
},
3838
"license": "MIT",
3939
"dependencies": {
40-
"@actions/core": "^2.0.0",
40+
"@actions/core": "^3.0.0",
4141
"@actions/github": "^7.0.0"
4242
},
4343
"devDependencies": {

pnpm-lock.yaml

Lines changed: 32 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)