generated from actions/javascript-action
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
24,541 additions
and
711 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,14 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.COMMIT_PAT }} | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
- name: setup git config | ||
run: | | ||
git config user.name "Lucas Kacher" | ||
git config user.email "<[email protected]>" | ||
- name: Set Node.js 16.x | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -29,14 +37,9 @@ jobs: | |
- name: Compare the expected and actual dist/ directories | ||
run: | | ||
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then | ||
echo "Detected uncommitted changes after build. See status below:" | ||
git add . | ||
git diff | ||
exit 1 | ||
git commit -m "rebuild dist" | ||
git push | ||
fi | ||
id: diff | ||
# If index.js was different than expected, upload the expected version as an artifact | ||
- uses: actions/upload-artifact@v3 | ||
if: ${{ failure() && steps.diff.conclusion == 'failure' }} | ||
with: | ||
name: dist | ||
path: dist/ |
Oops, something went wrong.