Skip to content

Commit dd089ce

Browse files
committed
Managed by Terraform: Update notify-integration-release-via-tag github workflow
1 parent 0ad62a2 commit dd089ce

1 file changed

Lines changed: 9 additions & 15 deletions

File tree

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
1-
name: Notify Integration Release (Manual)
1+
name: Notify Integration Release (Tag)
22
on:
3-
workflow_dispatch:
4-
inputs:
5-
version:
6-
description: "The release version (semver)"
7-
default: 0.0.1
8-
required: false
9-
branch:
10-
description: "A branch or SHA"
11-
default: 'main'
12-
required: false
3+
push:
4+
tags:
5+
- '*.*.*' # Proper releases
6+
- '*.*.*-*' # Pre releases
137
jobs:
148
notify-release:
159
runs-on: ubuntu-latest
1610
steps:
1711
- name: Checkout this repo
1812
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
1913
with:
20-
ref: ${{ github.event.inputs.branch }}
14+
ref: ${{ github.ref }}
2115
# Ensure that Docs are Compiled
2216
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
2317
- shell: bash
@@ -40,7 +34,7 @@ jobs:
4034
- name: Notify Release
4135
uses: ./integration-release-action
4236
with:
43-
integration_identifier: "packer/hashicorp/tencentcloud"
44-
release_version: ${{ github.event.inputs.version }}
45-
release_sha: ${{ github.event.inputs.branch }}
37+
integration_identifier: 'packer/hashicorp/tencentcloud'
38+
release_version: ${{ github.ref_name }}
39+
release_sha: ${{ github.ref }}
4640
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)