File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 18
18
npm install
19
19
npm run all
20
20
21
- # Update dist files if there is label dependencies or pull request' author is dependabot[bot] (id = 49699333)
21
+ # Update dist files if they are changed
22
22
- name : Update dist files
23
- if : github.event_name == 'pull_request' && (github.event.pull_request.user.id == 49699333 || contains(github.event.pull_request.labels.*.name, 'dependencies'))
23
+ if : github.event_name == 'push'
24
24
run : |
25
25
if [[ -z $(git status -s) ]]
26
26
then
@@ -29,14 +29,11 @@ jobs:
29
29
echo "Updating dist directory"
30
30
git config --local user.name "dependabot[bot]"
31
31
git config --local user.email "49699333+dependabot[bot]@users.noreply.github.com"
32
- git add --update
33
- git commit --message="Update dist files"
32
+ git add dist/**/*.js
33
+ git commit --message="update dist files"
34
34
git push
35
35
fi
36
36
37
- # Fail the build if there is dirty change
38
- - run : git diff --exit-code
39
-
40
37
test : # make sure the action works on a clean machine without building
41
38
needs : [ build ]
42
39
strategy :
You can’t perform that action at this time.
0 commit comments