GeezerVison is showing github.com — tools: do not checkout repo in `auto-start-ci.yml` · nodejs/node@ee107f5
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/auto-start-ci.yml +5-7Lines changed: 5 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
45 | 45 | if: needs.get-prs-for-ci.outputs.numbers != '' |
46 | 46 | runs-on: ubuntu-slim |
47 | 47 | steps: |
48 | | - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
49 | | - with: |
50 | | - persist-credentials: false |
51 | | - |
52 | 48 | - name: Install Node.js |
53 | 49 | uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0 |
54 | 50 | with: |
@@ -62,14 +58,16 @@ jobs: |
62 | 58 | ncu-config set username "$USERNAME" |
63 | 59 | ncu-config set token "$GH_TOKEN" |
64 | 60 | ncu-config set jenkins_token "$JENKINS_TOKEN" |
65 | | - ncu-config set owner "${{ github.repository_owner }}" |
66 | | - ncu-config set repo "$(echo ${{ github.repository }} | cut -d/ -f2)" |
| 61 | + ncu-config set owner "$GITHUB_REPOSITORY_OWNER" |
| 62 | + ncu-config set repo "$(echo "$GITHUB_REPOSITORY" | cut -d/ -f2)" |
67 | 63 | env: |
68 | 64 | USERNAME: ${{ secrets.JENKINS_USER }} |
69 | 65 | GH_TOKEN: ${{ secrets.GH_USER_TOKEN }} |
70 | 66 | JENKINS_TOKEN: ${{ secrets.JENKINS_TOKEN }} |
71 | 67 |
|
72 | 68 | - name: Start the CI |
73 | | - run: ./tools/actions/start-ci.sh ${{ needs.get-prs-for-ci.outputs.numbers }} |
| 69 | + run: | |
| 70 | + curl -fsSL "https://github.com/${GITHUB_REPOSITORY}/raw/${GITHUB_SHA}/tools/actions/start-ci.sh" \ |
| 71 | + | sh -s -- ${{ needs.get-prs-for-ci.outputs.numbers }} |
74 | 72 | env: |
75 | 73 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |