mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
CI: fix release comms workflow (#89744)
* add runs-on key * remove unneeded env key * use more specific quotes in commands * fix block syntax * fix workflow dispatch event check
This commit is contained in:
19
.github/workflows/release-comms.yml
vendored
19
.github/workflows/release-comms.yml
vendored
@@ -19,9 +19,9 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
post_release:
|
post_release:
|
||||||
name: Post-release comms
|
name: Post-release comms
|
||||||
env:
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- if: github.event.workflow_dispatch
|
- if: github.event_name == 'workflow_dispatch'
|
||||||
run: |
|
run: |
|
||||||
echo "VERSION=${{ inputs.version }}" >> $GITHUB_ENV
|
echo "VERSION=${{ inputs.version }}" >> $GITHUB_ENV
|
||||||
echo "DRY_RUN=${{ inputs.dry_run }}" >> $GITHUB_ENV
|
echo "DRY_RUN=${{ inputs.dry_run }}" >> $GITHUB_ENV
|
||||||
@@ -29,8 +29,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "VERSION=$(echo ${{ github.head_ref }} | sed -e 's/release\///g')" >> $GITHUB_ENV
|
echo "VERSION=$(echo ${{ github.head_ref }} | sed -e 's/release\///g')" >> $GITHUB_ENV
|
||||||
echo "DRY_RUN=false" >> $GITHUB_ENV
|
echo "DRY_RUN=false" >> $GITHUB_ENV
|
||||||
- run: "echo push-grafana-tag $VERSION (dry run: $DRY_RUN)"
|
- run: |
|
||||||
- run: "echo post changelog to forums for $VERSION (dry run: $DRY_RUN)"
|
echo "push-grafana-tag ${VERSION} (dry run: ${DRY_RUN})"
|
||||||
- run: "echo create github release"
|
- run: |
|
||||||
- run: "echo publish docs for $VERSION (dry run: $DRY_RUN)"
|
echo "post changelog to forums for ${VERSION} (dry run: ${DRY_RUN})"
|
||||||
- run: "announce on slack that $VERSION has been released (dry run: $DRY_RUN)"
|
- run: |
|
||||||
|
echo "create github release for tag ${VERSION} (dry run: ${DRY_RUN})"
|
||||||
|
- run: |
|
||||||
|
echo "publish docs for ${VERSION} (dry run: ${DRY_RUN})"
|
||||||
|
- run: |
|
||||||
|
echo "announce on slack that ${VERSION} has been released (dry run: ${DRY_RUN})"
|
||||||
|
|||||||
Reference in New Issue
Block a user