diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index def42b0..efd4e05 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,6 +22,18 @@ jobs: - name: Build Plug run: deno task build + - name: Commit and push changes + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git add icalendar.plug.js + if git diff --quiet && git diff --staged --quiet; then + echo "No changes to commit" + else + git commit -m "Build and update icalendar.plug.js [skip ci]" + git push + fi + - name: Upload Build Artifact uses: actions/upload-artifact@v4 with: