Watchexec release #273
This file contains hidden or 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: Watchexec release | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '32 15 * * *' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: "generator -> target" | |
| - name: Prep generator | |
| run: bin/generator lint | |
| - name: Update watchexec | |
| run: | | |
| set -exo pipefail | |
| version=$(bin/generator version-list -a watchexec -n1) | |
| if [[ ! -f "src/downloads/watchexec/$version/meta.json" ]]; then | |
| bin/make-release watchexec $version | |
| echo "new_version=$version" >> "$GITHUB_ENV" | |
| fi | |
| - name: Commit | |
| uses: stefanzweifel/git-auto-commit-action@v4 | |
| if: env.new_version | |
| with: | |
| commit_message: Watchexec ${{ env.new_version }} | |
| deploy: | |
| needs: build | |
| uses: ./.github/workflows/deploy.yml |