auto fetch artifacts #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: cheatsheet | |
on: [push, pull_request, workflow_dispatch] | |
permissions: | |
contents: write | |
jobs: | |
cheatsheet: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: build docker image and generate cheatsheets | |
run: | | |
docker compose build | |
docker compose up | |
- name: commit cheatsheets | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Actions" | |
git add cheatsheets | |
git commit -m "update cheatsheet" | |
git push |