Skip to content

Commit

Permalink
Merge pull request #5 from ClickHouse/auto-update
Browse files Browse the repository at this point in the history
Add auto-update for the HTML page
  • Loading branch information
alexey-milovidov authored Feb 3, 2025
2 parents 798e12d + 54546e4 commit d4861e2
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/generate-results.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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/checkout@v3
- 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

0 comments on commit d4861e2

Please sign in to comment.