feat: make command execution asynchronous #21
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: Release-plz | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| release-plz-release: | |
| name: Release-plz release | |
| runs-on: ubuntu-latest | |
| if: ${{ github.repository_owner == 'inthehack' }} | |
| permissions: | |
| contents: write | |
| id-token: write | |
| steps: | |
| - &checkout | |
| name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: true | |
| token: ${{ secrets.RELEASE_PLZ_TOKEN }} | |
| - &install-rust | |
| name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - &config-git-remotes | |
| name: Configure noterm remote using https instead of ssh | |
| run: | | |
| git config --global --add \ | |
| url."https://${{ secrets.RELEASE_PLZ_TOKEN }}@github.com/inthehack/noterm".insteadOf \ | |
| "ssh://[email protected]/inthehack/noterm" | |
| - name: Run release-plz | |
| uses: release-plz/[email protected] | |
| with: | |
| command: release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }} | |
| release-plz-pr: | |
| name: Release-plz PR | |
| runs-on: ubuntu-latest | |
| if: ${{ github.repository_owner == 'inthehack' }} | |
| permissions: | |
| pull-requests: write | |
| contents: write | |
| concurrency: | |
| group: release-plz-${{ github.ref }} | |
| cancel-in-progress: false | |
| steps: | |
| - *checkout | |
| - *install-rust | |
| - *config-git-remotes | |
| - name: Run release-plz | |
| uses: release-plz/[email protected] | |
| with: | |
| command: release-pr | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }} |