We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2aba24d commit 885d249Copy full SHA for 885d249
1 file changed
.github/workflows/sync-main.yml
@@ -0,0 +1,37 @@
1
+name: Sync Main
2
+on:
3
+ schedule:
4
+ - cron: '0 12 * * *'
5
+ push:
6
+ branches:
7
+ - 'main'
8
+ workflow_dispatch:
9
+jobs:
10
+ sync-main:
11
+ name: Sync-main
12
+ runs-on: ubuntu-latest
13
+ if: github.repository == 'microsoft/codeql'
14
+ permissions:
15
+ contents: write
16
+ steps:
17
+ - name: Checkout
18
+ uses: actions/checkout@v3
19
+ - name: Git config
20
+ shell: bash
21
+ run: |
22
+ git config user.name Dilan Bhalla
23
+ git config user.email dilanbhalla@microsoft.com
24
+ - name: Fetch
25
26
27
+ set -x
28
+ git fetch
29
+ git remote add upstream https://github.com/github/codeql.git
30
+ git fetch upstream --tags --force
31
+ - name: Sync Main
32
33
34
+ git merge codeql-cli/latest
35
+ git push origin main
36
+ git push origin --tags --force
37
+
0 commit comments