-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PSCE-309 - Adds sync-upstreams GitHub Action and usage documentation #148
Conversation
eeaa651
to
79645dd
Compare
To reduce code duplication in the bash script, common logic is added to common.sh for reuse. Signed-off-by: Jennifer Power <[email protected]>
Signed-off-by: Jennifer Power <[email protected]>
The working directory is subject to change and the entrypoint scripts need to source `common.sh` from the location in the container. Signed-off-by: Jennifer Power <[email protected]>
@@ -104,7 +105,40 @@ jobs: | |||
branch: ${{ github.head_ref }} | |||
``` | |||
|
|||
## Component Regeneration | |||
## Propagate Changes from upstream sources | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor suggestions - change te word "Changes" to start with a lowercase c
actions/sync-upstreams/README.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor suggestions and uppercase T in "trestlebot"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very minor comments added, approved
Signed-off-by: Jennifer Power <[email protected]>
Description
Adds
sync-upstreams
GitHub Action and documentation on usage.Review Hints
The first commit adds
common.sh
reduce some of the duplicate logic in the entrypoint bash scripts to prepare to add a fourth script.Stacked with #142
Rationale
common.sh
file - There was about ~39 lines of duplicated logic per file so before adding another file with duplicated, I add that logic to a common file that will just store reusable functions.Type of change
How has this been tested?
- Working with comma separation - https://github.com/jpower432/cautious-potato/actions/runs/7508213824
- Newline separation - https://github.com/jpower432/cautious-potato/actions/runs/7530774759/job/20497901679
- create-cd - https://github.com/jpower432/cautious-potato/actions/runs/7507909168
- transform-rules - https://github.com/jpower432/cautious-potato/actions/runs/7508129092/job/20443009052
- autosync - https://github.com/jpower432/cautious-potato/actions/runs/7508168427/job/20443116558
Checklist