We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e723048 commit d3e319fCopy full SHA for d3e319f
.github/workflows/scheduler_daily.yml
@@ -44,7 +44,9 @@ jobs:
44
45
- name: 🆙 Update profile if updated
46
run: |
47
+ echo "IS_UPDATED=false" >> $GITHUB_ENV
48
if [ -n "$(git status --porcelain)" ]; then
49
+ echo "IS_UPDATED=true" >> $GITHUB_ENV
50
git config --global user.name "Yohei Yasukawa"
51
git config --global user.email "[email protected]"
52
git checkout main
@@ -62,7 +64,7 @@ jobs:
62
64
SKIP_BUILD=true bundle exec rake test
63
65
66
- name: 🚀 Deploy to GitHub Pages
- if: github.ref == 'refs/heads/main' && job.status == 'success'
67
+ if: github.ref == 'refs/heads/main' && job.status == 'success' && env.IS_UPDATED == 'true'
68
uses: peaceiris/actions-gh-pages@v3
69
with:
70
personal_token: ${{ secrets.GITHUB_TOKEN }}
0 commit comments