Skip to content

Commit

Permalink
Autorebuild - deps (#260)
Browse files Browse the repository at this point in the history
* feat: autorebuild

* rebuild dist
  • Loading branch information
promiseofcake authored Dec 3, 2023
1 parent 4888b23 commit ceac93d
Show file tree
Hide file tree
Showing 5 changed files with 24,541 additions and 711 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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/
Loading

0 comments on commit ceac93d

Please sign in to comment.