File tree Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -25,31 +25,26 @@ jobs:
25
25
uses : actions/checkout@v3
26
26
with :
27
27
fetch-depth : 0
28
- token : ${{ secrets.WORKFLOW_TOKEN }}
29
28
- name : Git config
30
29
shell : bash
31
30
run : |
32
31
git config user.name "github-actions[bot]"
33
32
git config user.email "github-actions[bot]@users.noreply.github.com"
34
33
- name : Add and fetch upstream
35
34
run : |
36
- set -x
35
+ echo "::group::Fetch and set up remotes"
37
36
git fetch
38
37
git remote add upstream https://github.com/github/codeql.git
39
38
git fetch upstream --tags --force
39
+ echo "::endgroup::"
40
+
41
+ echo "::group::Checkout and merge"
42
+ set -x
40
43
git fetch origin sync-main-pr || true
41
44
git checkout -B sync-main-pr origin/main
42
45
git merge codeql-cli/latest
43
- - name : Setup CodeQL
44
- shell : bash
45
- run : |
46
- gh extension install github/gh-codeql
47
- gh codeql version
48
- printf "CODEQL_FETCHED_CODEQL_PATH=" >> "${GITHUB_ENV}"
49
- gh codeql version --format=json | jq -r .unpackedLocation >> "${GITHUB_ENV}"
50
- gh codeql version --format=json | jq -r .unpackedLocation >> "${GITHUB_PATH}"
51
- env :
52
- GITHUB_TOKEN : ${{ github.token }}
46
+ set +x
47
+ echo "::endgroup::"
53
48
- name : Push sync branch
54
49
run : |
55
50
git push origin sync-main-pr --force
65
60
else
66
61
echo "PR already exists: $PR_URL"
67
62
fi
68
- env :
69
- GITHUB_TOKEN : ${{ github.token }}
You can’t perform that action at this time.
0 commit comments