-
-
Notifications
You must be signed in to change notification settings - Fork 11
32 lines (29 loc) · 812 Bytes
/
deploy.yml
File metadata and controls
32 lines (29 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Deploy Action Code
on:
push:
branches: [ main ]
paths-ignore: [ 'dist/*.js' ]
permissions:
contents: write
jobs:
deploy-action-code:
name: Deploy Action Code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
token: ${{ secrets.BOT_TOKEN }}
- uses: ./.github/actions/generate-action-code
- name: Configure repository
env:
BOT_USERNAME: ${{ secrets.BOT_USERNAME }}
run: |
git config user.name "${BOT_USERNAME}"
git config user.email "${BOT_USERNAME}@users.noreply.github.com"
- name: Commit changes
run: |
if ! git diff --exit-code --quiet; then
git add .
git commit -m '[AUTO] Update generated code'
git push
fi