diff --git a/.github/workflows/release-manual.yml b/.github/workflows/release-manual.yml index cebd9555fa..e56406a73c 100644 --- a/.github/workflows/release-manual.yml +++ b/.github/workflows/release-manual.yml @@ -99,3 +99,15 @@ jobs: previous-tag: '${{ steps.release_info.outputs.PREVIOUS_TAG }}' skip-github-release: '${{ github.event.inputs.skip_github_release }}' working-directory: './release' + + - name: 'Create Issue on Failure' + if: '${{ failure() && github.event.inputs.dry_run == false }}' + env: + GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' + RELEASE_TAG: '${{ github.event.inputs.version }}' + DETAILS_URL: '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}' + run: | + gh issue create \ + --title 'Manual Release Failed for ${RELEASE_TAG} on $(date +'%Y-%m-%d')' \ + --body 'The manual release workflow failed. See the full run for details: ${DETAILS_URL}' \ + --label 'kind/bug,release-failure,priority/p0' diff --git a/.github/workflows/release-sandbox.yml b/.github/workflows/release-sandbox.yml index 5a44bd23c4..8dcad3e39a 100644 --- a/.github/workflows/release-sandbox.yml +++ b/.github/workflows/release-sandbox.yml @@ -17,6 +17,10 @@ on: jobs: build: runs-on: 'ubuntu-latest' + permissions: + contents: 'read' + packages: 'write' + issues: 'write' steps: - name: 'Checkout' uses: 'actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8' @@ -33,3 +37,13 @@ jobs: github-sha: '${{ github.sha }}' github-ref-name: '${{github.event.inputs.ref}}' dry-run: '${{ github.event.inputs.dry-run }}' + - name: 'Create Issue on Failure' + if: '${{ failure() && github.event.inputs.dry-run == false }}' + env: + GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' + DETAILS_URL: '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}' + run: | + gh issue create \ + --title 'Sandbox Release Failed on $(date +'%Y-%m-%d')' \ + --body 'The sandbox-release workflow failed. See the full run for details: ${DETAILS_URL}' \ + --label 'kind/bug,release-failure,priority/p0' diff --git a/docs/releases.md b/docs/releases.md index 548e13d51e..cfce8d31f8 100644 --- a/docs/releases.md +++ b/docs/releases.md @@ -4,7 +4,7 @@ We will follow https://semver.org/ as closely as possible but will call out when or if we have to deviate from it. Our weekly releases will be minor version increments and any bug or hotfixes between releases will go out as patch versions on the most recent release. -Each Tuesaday ~2000 UTC new Stable and Preview releases will be cut. The promotion flow is: +Each Tuesday ~2000 UTC new Stable and Preview releases will be cut. The promotion flow is: - Code is commited to main and pushed each night to nightly - After no more than 1 week on main, code is promoted to the `preview` channel