You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable you to create or update a file to create a follow up pull request.
Why is the feature needed?
tfaction creates an empty commit to create a follow up pull request, but if you use path filters an empty commit doesn't trigger a workflow run.
To solve this issue, we want to create or update a file in the working directory instead of empty commit.
Example Code
tfaction-root.yaml
create_follow_up_pr:
create_file: true
.tfaction-follow-up
# This file is created and updated for follow up pull requests.
# You can remove this file safely.
https://github.com/suzuki-shunsuke/tfaction-example/actions/runs/10911798341 # Insert workflow URL to update file.
Note
No response
The text was updated successfully, but these errors were encountered:
Why not updating tfaction.yaml instead of .tfaction-follow-up?
I considered adding a newline to tfaction.yaml instead of .tfaction-follow-up, but if you configure CODEOWNERS to tfaction.yaml, it's bad to update tfaction.yaml to create a follow up pull request because the codeowner of tfaction.yaml needs to review the pull request.
tfaction.yaml allows you to configure sensitive settings, so teams such as SRE and Security may be codeowners of tfaction.yaml.
suzuki-shunsuke
changed the title
Create or update a file to create a follow up pull request
Create or update a file for follow up pull requests
Sep 19, 2024
Remove the setting and change the default behavior
I considered adding the setting and kept the default behavior, but I changed my mind that we can change the default behavior instead of adding the setting.
This makes tfaction simple.
Feature Overview
https://suzuki-shunsuke.github.io/tfaction/docs/feature/follow-up-pr
Enable you to create or update a file to create a follow up pull request.
Why is the feature needed?
tfaction creates an empty commit to create a follow up pull request, but if you use path filters an empty commit doesn't trigger a workflow run.
To solve this issue, we want to create or update a file in the working directory instead of empty commit.
Example Code
tfaction-root.yaml
.tfaction-follow-up
Note
No response
The text was updated successfully, but these errors were encountered: