Update time #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update tables | |
on: | |
push: | |
paths: | |
- '**.org' | |
permissions: | |
contents: write | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- run: apt-get update && apt-get install --assume-yes --no-install-recommends sudo | |
name: Install sudo for act | |
if: env.ACT=='true' | |
- name: Install emacs | |
run: sudo apt-get install --assume-yes --no-install-recommends emacs | |
- uses: actions/checkout@v3 | |
- name: Update tables | |
run: ./update.sh | |
- name: Commit report | |
run: | | |
git config --global user.name 'Updater Bot' | |
git config --global user.email 'bot@metacode.biz' | |
if git commit -am "Update tables"; then | |
git push | |
fi |