WIP: import github resources into terraform #18
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
# Run on each main branch commit, create a commit to update the README.md | |
name: Check and update Readme | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
update-readme: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
name: Update Readme | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v25 | |
- name: Update Readme | |
run: nix run .#updateReadme | |
- uses: EndBug/add-and-commit@v9 | |
if: ${{ github.event_name == 'push' }} | |
with: | |
push: true | |
- name: Output readme | |
if: ${{ github.event_name != 'push' }} | |
run: cat README.md > "$GITHUB_STEP_SUMMARY" | |