File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -18,14 +18,27 @@ jobs:
18
18
19
19
- run : |
20
20
npm ci
21
+ VERSION_BEFORE=`node --eval 'console.log(require("./package.json").version)'`
21
22
./update.js --no-commit
22
23
VERSION=`node --eval 'console.log(require("./package.json").version)'`
24
+ if [ "$VERSION" == "$VERSION_BEFORE" ]; then
25
+ echo "No update needed"
26
+ exit 0
27
+ fi
23
28
echo "NEW_VERSION=$VERSION" >> "$GITHUB_OUTPUT"
24
29
id: update
25
30
name: Run update
26
31
32
+ - uses : tibdex/github-app-token@v1
33
+ id : generate-token
34
+ if : steps.update.outputs.NEW_VERSION != ''
35
+ with :
36
+ app_id : ${{ secrets.APP_ID }}
37
+ private_key : ${{ secrets.APP_PRIVATE_KEY }}
38
+
27
39
- uses : peter-evans/create-pull-request@v5
28
40
name : Create Pull Request
41
+ if : steps.update.outputs.NEW_VERSION != ''
29
42
with :
30
43
commit-message : Bump version to ${{ steps.update.outputs.NEW_VERSION }}
31
44
branch : update-${{ steps.update.outputs.NEW_VERSION }}
38
51
update chromedriver
39
52
assignees : giggio
40
53
reviewers : giggio
54
+ token : ${{ steps.generate-token.outputs.token }}
You can’t perform that action at this time.
0 commit comments