-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync from upstream on a timed schedule
Signed-off-by: Ted Poole <tpoole@redhat.com>
- Loading branch information
Showing
3 changed files
with
96 additions
and
53 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Sync from Upstream (Scheduled) | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
schedule: | ||
- cron: "0 1 * * *" | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }} | ||
|
||
jobs: | ||
sync: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
branch_name: | ||
- main | ||
- release/v1.31 | ||
- release/v1.28 | ||
steps: | ||
- id: appauth | ||
uses: envoyproxy/toolshed/gh-actions/appauth@actions-v0.2.35 | ||
with: | ||
key: ${{ secrets.ENVOY_CI_UPDATE_BOT_KEY }} | ||
app_id: ${{ secrets.ENVOY_CI_UPDATE_APP_ID }} | ||
|
||
# Checkout the branch we're merging into | ||
- name: "Checkout ${{ github.repository }}[${{ matrix.branch_name }}]" | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ steps.appauth.outputs.token }} | ||
ref: ${{ matrix.branch_name }} | ||
fetch-depth: 0 | ||
|
||
# Configure the git user info on the repository | ||
- run: git config user.name "${{ github.actor }}" | ||
- run: git config user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com" | ||
|
||
# Checkout & run the script from the default branch | ||
- name: 'Checkout ci/envoy-sync-receive.sh' | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.repository.default_branch }} | ||
sparse-checkout: 'ci/envoy-sync-receive.sh' | ||
sparse-checkout-cone-mode: false | ||
path: '.script' | ||
- run: .script/ci/envoy-sync-receive.sh ${{ matrix.branch_name }} | ||
env: | ||
GH_TOKEN: ${{ steps.appauth.outputs.token }} |
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