Scaffold a working directory (for-test/foo) #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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}} | |
jobs: | |
scaffold: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- uses: aquaproj/aqua-installer@928a2ee4243a9ee8312d80dc8cbaca88fb602a91 # v2.2.0 | |
with: | |
aqua_version: v2.21.3 | |
- uses: suzuki-shunsuke/tfaction/scaffold-working-dir@233b3eebee1c48f18dfc917ef6a5cbc92510fc28 # v1.0.1-1 | |
- 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/create-scaffold-pr@233b3eebee1c48f18dfc917ef6a5cbc92510fc28 # v1.0.1-1 | |
with: | |
github_token: ${{ steps.generate_token.outputs.token }} |