Skip to content

Commit

Permalink
Add pull_upstream github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
barbarahui committed Jul 31, 2023
1 parent 5c069c7 commit 589788a
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/pull_upstream.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Sync Upstream

# https://github.com/marketplace/actions/sync-and-merge-upstream-repository-with-your-current-repository
env:
UPSTREAM_URL: "https://github.com/aws/aws-mwaa-local-runner.git"
WORKFLOW_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
UPSTREAM_BRANCH: "v2.5.1"
# Optional, defaults to UPSTREAM_BRANCH
DOWNSTREAM_BRANCH: ""
# 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"

# This runs every day on 1201 UTC
on:
schedule:
- cron: '1 12 * * *'
# Allows manual workflow run (must be in default branch to work)
workflow_dispatch:

jobs:
build:
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 }}


0 comments on commit 589788a

Please sign in to comment.