-
Notifications
You must be signed in to change notification settings - Fork 11
34 lines (33 loc) · 1.09 KB
/
release-module.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
# This workflow is optional
name: Release a Terraform Module
run-name: Release a Terraform Module (${{inputs.module_path}} ${{inputs.version}})
on:
workflow_dispatch:
inputs:
module_path:
description: "Module path"
required: true
version:
description: "Module version"
required: true
env:
TFACTION_TARGET: ${{github.event.inputs.module_path}}
jobs:
release-module:
timeout-minutes: 30
name: "release-module (${{github.event.inputs.module_path}})"
runs-on: ubuntu-latest
permissions:
contents: write # To create a release
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- uses: aquaproj/aqua-installer@e2d0136abcf70b7a2f6f505720640750557c4b33 # v3.1.1
with:
aqua_version: v2.42.2
- uses: suzuki-shunsuke/tfaction/release-module@98cdb1548f3638f49ed35a88dac04b46ad65478e # v1.15.2
with:
version: ${{ github.event.inputs.version }}
module_path: ${{ github.event.inputs.module_path }}