Skip to content

Hide the result before resolving the problem #37

Hide the result before resolving the problem

Hide the result before resolving the problem #37

name: "Generate index.html"
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
env:
CI_COMMIT_MESSAGE: "[bot] update index.html"
CI_COMMIT_AUTHOR: github
steps:
- uses: actions/[email protected]
- if: github.event.commits[0].message != env.CI_COMMIT_MESSAGE
run: |
bash generate-results.sh
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "${{ env.CI_COMMIT_AUTHOR }}@users.noreply.github.com"
git add -A
if git status | grep -q modified
then
git commit -m "${{ env.CI_COMMIT_MESSAGE }}"
git push
fi