forked from Cyclenerd/hcloud-github-runner
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtools_sync-fork-branch-master.yml
More file actions
42 lines (35 loc) · 1.15 KB
/
Copy pathtools_sync-fork-branch-master.yml
File metadata and controls
42 lines (35 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
name: Manage - Sync fork (Branch master)
"on":
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
permissions:
contents: read
jobs:
update_external_airflow_fork:
name: Sync branch master with origin
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Generate app token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
id: generate-token
with:
app-id: ${{ secrets.GH_APP_SRP_ID }}
private-key: ${{ secrets.GH_APP_SRP_PRIVATE_KEY }}
- name: Checkout Code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
- name: Synchronize the given branch now
uses: TobKed/github-forks-sync-action@2fb78daa46a630ff56455a63dec51ff00ba56e23 # v0.4.0
with:
github_token: ${{ steps.generate-token.outputs.token }}
upstream_repository: Cyclenerd/hcloud-github-runner
target_repository: ${{ github.repository }}
upstream_branch: master
target_branch: master
force: false
tags: false