Skip to content

Commit

Permalink
Managed by Terraform: Update notify-integration-release-via-tag githu…
Browse files Browse the repository at this point in the history
…b workflow
  • Loading branch information
nywilken committed Oct 13, 2023
1 parent 6edc6da commit cd2da17
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/notify-integration-release-via-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,21 @@ on:
push:
tags:
- '*.*.*' # Proper releases
- '*.*.*-*' # Pre releases
jobs:
strip-version:
runs-on: ubuntu-latest
outputs:
packer-version: ${{ steps.strip.outputs.packer-version }}
steps:
- name: Strip leading v from version tag
id: strip
env:
REF: ${{ github.ref_name }}
run: |
echo "packer-version=$(echo "$REF" | sed -E 's/v?([0-9]+\.[0-9]+\.[0-9]+)/\1/')" >> "$GITHUB_OUTPUT"
notify-release:
needs:
- strip-version
runs-on: ubuntu-latest
steps:
- name: Checkout this repo
Expand Down Expand Up @@ -34,7 +46,7 @@ jobs:
- name: Notify Release
uses: ./integration-release-action
with:
integration_identifier: 'packer/hashicorp/hcloud'
release_version: ${{ github.ref_name }}
integration_identifier: "packer/hashicorp/hcloud"
release_version: ${{ needs.strip-version.outputs.packer-version }}
release_sha: ${{ github.ref }}
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit cd2da17

Please sign in to comment.