Merge pull request #316 from apollographql/sync/main-into-develop-pr-315 #5
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: Canary Release | ||
on: | ||
push: | ||
# don't run on tags, run on commits | ||
# https://github.com/orgs/community/discussions/25615 | ||
tags-ignore: | ||
- "**" | ||
branches: | ||
- develop | ||
workflow_dispatch: | ||
permissions: | ||
contents: read | ||
packages: write | ||
concurrency: | ||
group: canary-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
compute_canary_version: | ||
runs-on: ubuntu-24.04 | ||
outputs: | ||
version: ${{ steps.canary_version.outputs.version }} | ||
steps: | ||
- name: Compute canary version | ||
id: canary_version | ||
run: | | ||
SHORT_SHA=${GITHUB_SHA::7} | ||
DATE=$(date -u +%Y%m%dT%H%M%SZ) | ||
echo "version=canary-${DATE}-${SHORT_SHA}" >> "$GITHUB_OUTPUT" | ||
release_container: | ||
Check failure on line 33 in .github/workflows/canary-release.yml
|
||
needs: compute_canary_version | ||
uses: ./.github/workflows/release-container.yml | ||
with: | ||
version: ${{ needs.compute_canary_version.outputs.version }} | ||
secrets: inherit |