Skip to content

Commit 48bb66f

Browse files
authored
chore: fix update screenshot workflow (#252)
1 parent eea4c2c commit 48bb66f

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/updtae-screenshots.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
COMMIT_MESSAGE: |
1111
test: update visual regression screenshots
1212
13-
Co-authored-by: ${{ github.event.sender.name }} <${{ github.event.sender.id }}+${{ github.event.sender.login }}@users.noreply.github.com>
13+
Co-authored-by: ${{ github.event.sender.login }} <${{ github.event.sender.id }}+${{ github.event.sender.login }}@users.noreply.github.com>
1414
1515
jobs:
1616
update-screenshots:
@@ -27,21 +27,23 @@ jobs:
2727
contents: write # needs to push changes
2828

2929
steps:
30+
- name: Generate token
31+
id: generate-token
32+
uses: actions/create-github-app-token@v2
33+
with:
34+
app-id: ${{ secrets.GRAVITY_UI_APP_ID }}
35+
private-key: ${{ secrets.GRAVITY_UI_APP_PRIVATE_KEY }}
36+
3037
- name: Checkout
3138
uses: actions/checkout@v6
39+
with:
40+
token: ${{ steps.generate-token.outputs.token }}
3241

3342
- name: Configure Git
3443
run: |
3544
git config --global user.name "${{ env.AUTHOR_NAME }}"
3645
git config --global user.email "${{ env.AUTHOR_EMAIL }}"
3746
38-
- name: Generate token
39-
id: generate-token
40-
uses: actions/create-github-app-token@v2
41-
with:
42-
app-id: ${{ secrets.GRAVITY_UI_APP_ID }}
43-
private-key: ${{ secrets.GRAVITY_UI_APP_PRIVATE_KEY }}
44-
4547
- name: Set eyes emoji
4648
id: start_working
4749
run: |
@@ -98,8 +100,6 @@ jobs:
98100
- name: Push changes
99101
if: steps.check_changes.outputs.changes == 'true'
100102
run: git push
101-
env:
102-
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
103103

104104
- name: Set done emoji
105105
run: |

0 commit comments

Comments
 (0)