Upload reports on failure (#459) #132
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
# A Workflow for bootstrapping repos created from this template. | |
name: Bootstrap | |
on: | |
push: | |
branches: [ main ] | |
permissions: | |
contents: read | |
jobs: | |
boostrap: | |
if: ${{ github.run_number == 1 }} | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Install zsh | |
run: sudo apt install zsh | |
- name: Run script | |
shell: zsh {0} | |
run: ./.creek/bootstrap.sh "${{ github.repository }}" "${{ github.repository_owner }}" | |
- name: Format code | |
run: ./gradlew format | |
- name: Commit changes | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Creek Bot" | |
git add -A | |
git status | |
git commit -m "Bootstrap repo" | |
git push |