Skip to content

Commit 969ed5d

Browse files
First commit
This workflow will sync this forked repo with the source one, every Sunday @ midnight ETC.
1 parent 653bf71 commit 969ed5d

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Sync Fork
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * 0" # Runs every Sunday at midnight UTC
6+
workflow_dispatch:
7+
8+
jobs:
9+
sync:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Load secrets from 1Password
14+
id: onepw_secrets
15+
uses: 1password/load-secrets-action@v2.0.0
16+
with:
17+
export-env: true # Export loaded secrets as environment variables
18+
env:
19+
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
20+
GITHUB_TOKEN: "op://rbiv7rvkkrsdlpcrz3bmv7nmcu/GitHub generic action token for all repos/credential"
21+
22+
- name: Checkout repository
23+
uses: actions/checkout@v4.2.2
24+
25+
- name: Set up GitHub CLI
26+
run: echo "${{ env.GITHUB_TOKEN }}" | gh auth login --with-token
27+
28+
- name: Sync with upstream
29+
run: gh repo sync ${{ github.repository }} -b master

0 commit comments

Comments
 (0)