-
Notifications
You must be signed in to change notification settings - Fork 11
54 lines (51 loc) · 1.75 KB
/
scaffold-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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
name: Scaffold Terraform Module
run-name: Scaffold Terraform Module (${{inputs.module_path}})
on:
workflow_dispatch:
inputs:
module_path:
description: 'module path'
required: true
template_dir:
type: choice
default: templates/module-hello
options:
- templates/module-hello
jobs:
scaffold:
timeout-minutes: 30
runs-on: ubuntu-latest
env:
TFACTION_MODULE_PATH: ${{inputs.module_path}}
TFACTION_MODULE_TEMPLATE_DIR: ${{inputs.template_dir}}
permissions:
contents: read
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: aquaproj/aqua-installer@e6160e5a751bbcbd337a834eb75c15ba9ca206ae # v3.0.2
with:
aqua_version: v2.37.2
env:
AQUA_GITHUB_TOKEN: ${{github.token}}
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
# pull_requests:write - Create pull requests
# contents:write - Push commits
permissions: >-
{
"pull_requests": "write",
"contents": "write"
}
repositories: >-
["${{github.event.repository.name}}"]
- uses: suzuki-shunsuke/tfaction/scaffold-module@2b9d52f60b37e9331ebfe8f06df7ec2d0ee493a6 # v1.12.1
with:
github_token: ${{steps.generate_token.outputs.token}}
- uses: suzuki-shunsuke/tfaction/create-scaffold-module-pr@2b9d52f60b37e9331ebfe8f06df7ec2d0ee493a6 # v1.12.1
with:
github_token: ${{steps.generate_token.outputs.token}}