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 Sep 21, 2023
1 parent 9384f72 commit d6df74b
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/notify-integration-release-via-manual.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
name: Notify Integration Release (Manual)
name: Notify Integration Release (Tag)
on:
workflow_dispatch:
inputs:
version:
description: "The release version (semver)"
default: 0.0.1
required: false
branch:
description: "A branch or SHA"
default: 'main'
required: false
push:
tags:
- '*.*.*' # Proper releases
- '*.*.*-*' # Pre releases
jobs:
notify-release:
runs-on: ubuntu-latest
steps:
- name: Checkout this repo
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
ref: ${{ github.event.inputs.branch }}
ref: ${{ github.ref }}
# Ensure that Docs are Compiled
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
- shell: bash
Expand All @@ -40,7 +34,7 @@ jobs:
- name: Notify Release
uses: ./integration-release-action
with:
integration_identifier: "packer/hashicorp/oneandone"
release_version: ${{ github.event.inputs.version }}
release_sha: ${{ github.event.inputs.branch }}
integration_identifier: 'packer/hashicorp/oneandone'
release_version: ${{ github.ref_name }}
release_sha: ${{ github.ref }}
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d6df74b

Please sign in to comment.