v0.5.24
Issues | Pull Requests | v0.5.23...v0.5.24 | Base revision
Features
#909 scaffold-tfmigrate: Support scaffolding tfmigrate migration related files to existing pull requests
A new input pr_number
was added to the action scaffold-tfmigrate
.
e.g. .github/workflows/scaffolf-tfmigrate.yaml
- https://github.com/suzuki-shunsuke/tfaction-example/blob/f5de5ea39f807f92072dc1c71fcced9aeae3d9b0/.github/workflows/scaffold-tfmigrate.yaml#L12-L14
- https://github.com/suzuki-shunsuke/tfaction-example/blob/f5de5ea39f807f92072dc1c71fcced9aeae3d9b0/.github/workflows/scaffold-tfmigrate.yaml#L43
on:
workflow_dispatch:
inputs:
target:
description: 'target'
required: true
migration_name:
description: 'migration name. e.g. "import_foo"'
required: true
pr_number: # New
description: Pull Request Number
required: false
jobs:
scaffold-tfmigrate:
# ...
steps:
# ...
- uses: suzuki-shunsuke/tfaction/scaffold-tfmigrate@pr/909
id: scaffold-working-dir
with:
github_app_token: ${{steps.generate_token.outputs.token}}
migration_name: ${{github.event.inputs.migration_name}}
pr_number: ${{inputs.pr_number}} # New
If pr_number
is set, the action pushes a commit to the given request instead of creating a new pull request.