2727 subsystem : ${{ fromJSON(github.event.inputs.subsystems || '["url", "WebCryptoAPI"]') }}
2828
2929 steps :
30- - uses : actions/checkout@6d193bf28034eafb982f37bd894289fe649468fc # v4.1.7
30+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3131 with :
3232 persist-credentials : false
3333
@@ -43,25 +43,28 @@ jobs:
4343 run : |
4444 ncu-config set username "$USERNAME"
4545 ncu-config set token "$GH_TOKEN"
46- ncu-config set jenkins_token "$JENKINS_TOKEN"
47- ncu-config set owner "${{ github.repository_owner }}"
48- ncu-config set repo "$(echo ${{ github.repository }} | cut -d/ -f2)"
46+ ncu-config set owner "${GITHUB_REPOSITORY_OWNER}"
47+ ncu-config set repo "$(echo "$GITHUB_REPOSITORY" | cut -d/ -f2)"
4948 env :
5049 USERNAME : ${{ secrets.JENKINS_USER }}
5150 GH_TOKEN : ${{ secrets.GH_USER_TOKEN }}
52- JENKINS_TOKEN : ${{ secrets.JENKINS_TOKEN }}
5351
5452 - name : Update WPT for subsystem ${{ matrix.subsystem }}
5553 run : |
56- git node wpt ${{ matrix.subsystem }}
54+ git node wpt "$SUBSYSTEM"
55+ env :
56+ SUBSYSTEM : ${{ matrix.subsystem }}
5757
58- - name : Calculate new version for WPT using jq
58+ - name : Retrieve new version commit
5959 run : |
60- new_version=$(jq -r '.${{ matrix.subsystem }}.commit' test/fixtures/wpt/versions.json)
61- echo "new_version=$new_version" >> $GITHUB_ENV
60+ echo "new_version=$(
61+ node -p 'require("./test/fixtures/wpt/versions.json")[process.argv[1]].commit' "$SUBSYSTEM"
62+ )" >> "$GITHUB_ENV"
63+ env :
64+ SUBSYSTEM : ${{ matrix.subsystem }}
6265
6366 - name : Open or update PR for the subsystem update
64- uses : gr2m/create-or-update-pull-request-action@86ec1766034c8173518f61d2075cc2a173fb8c97
67+ uses : gr2m/create-or-update-pull-request-action@77596e3166f328b24613f7082ab30bf2d93079d5
6568 with :
6669 branch : actions/update-wpt-${{ matrix.subsystem }}
6770 author :
Node.js GitHub Bot <[email protected] >
0 commit comments