File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,14 @@ jobs:
24
24
- name : Check for diff
25
25
id : diff
26
26
run : |
27
- git status -s dist/ | grep "dist/"
28
- echo "GIT_STATUS=$?" >> "$GITHUB_OUTPUT"
27
+ if git status -s dist/ | grep "dist/"; then
28
+ echo "SHOULD_PUSH_BUILD=true" >> "$GITHUB_OUTPUT"
29
+ else
30
+ echo "SHOULD_PUSH_BUILD=false" >> "$GITHUB_OUTPUT"
31
+ fi
32
+
29
33
- name : Push build
30
- if : ${{ steps.diff.outputs.GIT_STATUS == '0 ' }}
34
+ if : ${{ steps.diff.outputs.SHOULD_PUSH_BUILD == 'true ' }}
31
35
run : |
32
36
git config user.name github-actions
33
37
git config user.email [email protected]
Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ inputs:
16
16
description : AWS Region
17
17
required : false
18
18
default : us-west-2
19
+ github_token :
20
+ description : Repo token for fetching commit details
21
+ required : false
19
22
runs :
20
23
using : " node16"
21
24
main : " dist/index.js"
You can’t perform that action at this time.
0 commit comments