Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tmp #40

Merged
merged 1 commit into from
Feb 21, 2023
Merged

tmp #40

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

- name: Compare the expected and actual dist/ directories
run: |
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
Expand All @@ -50,9 +50,4 @@ jobs:
# NOTE: src/ と dist/ が一致することを保証するため差分があれば commit する
- name: Commit dist/
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add dist/
git commit -m '[github-action] update dist'
git push
run: echo "diff is found!"