Skip to content

Commit

Permalink
Managed by Terraform: Update notify-integration-release-via-manual gi…
Browse files Browse the repository at this point in the history
…thub workflow
  • Loading branch information
nywilken committed Feb 12, 2024
1 parent c44dccd commit eef9db7
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/notify-integration-release-via-manual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,20 @@ on:
default: 'main'
required: false
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.event.inputs.version }}
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 @@ -44,6 +57,6 @@ jobs:
uses: ./integration-release-action
with:
integration_identifier: "packer/hashicorp/vagrant"
release_version: ${{ github.event.inputs.version }}
release_version: ${{ needs.strip-version.outputs.packer-version }}
release_sha: ${{ github.event.inputs.branch }}
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit eef9db7

Please sign in to comment.