Sync Upstream #61
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: Sync Upstream | |
env: | |
# Required, URL to upstream (fork base) | |
UPSTREAM_URL: "https://github.com/eclipse-basyx/basyx-java-server-sdk.git" | |
# Required, token to authenticate bot, could use ${{ secrets.GITHUB_TOKEN }} | |
# Over here, we use a PAT instead to authenticate workflow file changes. | |
WORKFLOW_TOKEN: ${{ secrets.SYNC_UPSTREAM_TOKEN }} | |
# Optional, defaults to main | |
UPSTREAM_BRANCH: "main" | |
# Optional, defaults to UPSTREAM_BRANCH | |
DOWNSTREAM_BRANCH: "main" | |
# Optional fetch arguments | |
FETCH_ARGS: "" | |
# Optional merge arguments | |
MERGE_ARGS: "" | |
# Optional push arguments | |
PUSH_ARGS: "" | |
# Optional toggle to spawn time logs (keeps action active) | |
SPAWN_LOGS: "false" # "true" or "false" | |
on: | |
workflow_dispatch: | |
schedule: | |
# minute | hour | day_of_month | month | day_of_week | |
- cron: "0 1 * * *" # this updates the Repository every day on 01am. | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: GitHub Sync to Upstream Repository | |
uses: dabreadman/[email protected] | |
with: | |
upstream_repo: ${{ env.UPSTREAM_URL }} | |
upstream_branch: ${{ env.UPSTREAM_BRANCH }} | |
downstream_branch: ${{ env.DOWNSTREAM_BRANCH }} | |
token: ${{ env.WORKFLOW_TOKEN }} | |
fetch_args: ${{ env.FETCH_ARGS }} | |
merge_args: ${{ env.MERGE_ARGS }} | |
push_args: ${{ env.PUSH_ARGS }} | |
spawn_logs: ${{ env.SPAWN_LOGS }} | |