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
I manage three repositories, testrepo1 and Repo2 , testrepo3. Initially, testrepo2 and testrepo3 was created as a copy of testrepo1, with some modifications made to certain files while the majority of the code remained unchanged.
My goal is to automate the process of updating testrepo2 and testrepo3 whenever a change is committed to a file in the main branch of Repo1. Specifically, I want only the modified files to be automatically updated in the base branch of testrepo2 and testrepo3.
While I've successfully written code to retrieve commit information and identify modified files, I'm encountering difficulties in implementing the automated update process across repositories.
ActionsBuild, test, and automate your deployment pipeline with world-class CI/CD
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Body
I manage three repositories, testrepo1 and Repo2 , testrepo3. Initially, testrepo2 and testrepo3 was created as a copy of testrepo1, with some modifications made to certain files while the majority of the code remained unchanged.
My goal is to automate the process of updating testrepo2 and testrepo3 whenever a change is committed to a file in the main branch of Repo1. Specifically, I want only the modified files to be automatically updated in the base branch of testrepo2 and testrepo3.
While I've successfully written code to retrieve commit information and identify modified files, I'm encountering difficulties in implementing the automated update process across repositories.
name: Update Repositories Workflow
on:
push:
branches:
- main
jobs:
sync-commit:
runs-on: ubuntu-latest
env:
BASE_BRANCH: basebranch
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions