Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
kylegalbraith committed Aug 7, 2024
1 parent 0d1c76d commit 0d68d5a
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Sync
on:
workflow_dispatch: {}
schedule:
- cron: "*/10 * * * *"

jobs:
sync:
name: Sync With Upstream
runs-on: depot-ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.BOT_PUBLIC_GITHUB_TOKEN }}
- run: |
git config --global user.name "depot-bot"
git config --global user.email "[email protected]"
git submodule init
git submodule update --remote --merge
export UPSTREAM="$(cd upstream && git remote get-url origin)"
export COMMIT_SHA="$(cd upstream && git rev-parse HEAD)"
git commit -am "Update upstream to ${UPSTREAM}/commit/${COMMIT_SHA}" || echo "No changes"
git push origin main
env:
BOT_PUBLIC_GITHUB_TOKEN: ${{ secrets.BOT_PUBLIC_GITHUB_TOKEN }}

0 comments on commit 0d68d5a

Please sign in to comment.