Skip to content

Commit de5c087

Browse files
committed
rethink Update dist files step
1 parent c947694 commit de5c087

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
npm install
1919
npm run all
2020
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
2222
- 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'
2424
run: |
2525
if [[ -z $(git status -s) ]]
2626
then
@@ -29,14 +29,11 @@ jobs:
2929
echo "Updating dist directory"
3030
git config --local user.name "dependabot[bot]"
3131
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"
3434
git push
3535
fi
3636
37-
# Fail the build if there is dirty change
38-
- run: git diff --exit-code
39-
4037
test: # make sure the action works on a clean machine without building
4138
needs: [ build ]
4239
strategy:

0 commit comments

Comments
 (0)