Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mkosunen committed Jan 22, 2024
1 parent 609a726 commit 1759bd4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,18 @@ jobs:
env:
CI_COMMIT_MESSAGE: Continuous Integration documentation update
CI_COMMIT_AUTHOR: Continuous Integration
run:
run: |
git config --global --add safe.directory /__w/inverter/inverter
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "${GITHUB_ACTOR}@noreply.github.com"
git add docs && git commit -m "${{ env.CI_COMMIT_MESSAGE }}" && git push || echo "Nothing to update"

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
git add docs \
&& git commit -m "${{ env.CI_COMMIT_MESSAGE }}" \
&& git push \
|| echo "Nothing to update"
pages_deploy:
needs: doc_build_job
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
Expand Down

0 comments on commit 1759bd4

Please sign in to comment.