chore(deps): update angular-cli monorepo to v22.2.1 (#259) #163
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 | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| inputs: | |
| dry_run: | |
| description: 'Run without committing, tagging or publishing a release' | |
| type: boolean | |
| default: false | |
| permissions: | |
| contents: write | |
| id-token: write | |
| concurrency: | |
| group: release-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| release: | |
| if: github.event_name != 'push' || !startsWith(github.event.head_commit.message, 'chore(release):') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: The postBump hook runs cargo update to keep Cargo.lock in step | |
| uses: dtolnay/rust-toolchain@6bed0761d98439e5a578e2877258200ad565ba87 # stable | |
| - uses: FerrLabs/FerrFlow@544e865a6398387633e3f991e6138e59416b726d # v7 | |
| with: | |
| bot: true | |
| dry_run: ${{ inputs.dry_run || false }} | |
| released: | |
| needs: release | |
| if: ${{ !inputs.dry_run }} | |
| runs-on: ubuntu-latest | |
| outputs: | |
| version: ${{ steps.tag.outputs.version }} | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| with: | |
| ref: main | |
| fetch-depth: 0 | |
| - name: A tag on the release commit is what says a release happened | |
| id: tag | |
| run: | | |
| version=$(git tag --points-at HEAD | sed -n 's/^v//p' | head -1) | |
| echo "version=$version" >> "$GITHUB_OUTPUT" | |
| if [ -z "$version" ]; then | |
| echo "Nothing was tagged in this run, so there is no image to build." >> "$GITHUB_STEP_SUMMARY" | |
| fi | |
| image: | |
| needs: released | |
| if: needs.released.outputs.version != '' | |
| uses: ./.github/workflows/image.yml | |
| permissions: | |
| contents: read | |
| packages: write | |
| with: | |
| version: ${{ needs.released.outputs.version }} | |
| push: true | |
| chart: | |
| needs: [released, image] | |
| uses: ./.github/workflows/chart.yml | |
| permissions: | |
| contents: read | |
| packages: write | |
| id-token: write | |
| with: | |
| version: ${{ needs.released.outputs.version }} |