forked from suzuki-shunsuke/tfaction-example
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 1.16 KB
/
scaffold-working-directory.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
---
name: Scaffold a working directory
run-name: Scaffold a working directory (${{inputs.working_dir}})
on:
workflow_dispatch:
inputs:
working_dir:
description: working directory
required: true
env:
TFACTION_WORKING_DIR: ${{github.event.inputs.working_dir}}
permissions:
id-token: write
contents: read
pull-requests: write
jobs:
scaffold:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: aquaproj/aqua-installer@d9c4b5d107a17831a8c8718efa4ce67a0923d1f5 # v2.1.3
with:
aqua_version: v2.16.4
- uses: suzuki-shunsuke/tfaction/scaffold-working-dir@26effa08b92b77b5cfe04e2a25c15845fd00b04f # v0.7.2
- 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 }}
- uses: suzuki-shunsuke/tfaction/create-scaffold-pr@26effa08b92b77b5cfe04e2a25c15845fd00b04f # v0.7.2
with:
github_app_token: ${{ steps.generate_token.outputs.token }}