1212 release :
1313 types : [published]
1414
15+ permissions :
16+ contents : write
17+
1518jobs :
1619 build_and_publish :
1720 runs-on : ubuntu-latest
@@ -32,13 +35,25 @@ jobs:
3235 echo "APP_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
3336
3437 - name : Checkout
35- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
38+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3639 with :
40+ persist-credentials : false
3741 path : ${{ env.APP_NAME }}
3842
43+ - name : Get app version number
44+ id : app-version
45+ uses : skjnldsv/xpath-action@f5b036e9d973f42c86324833fd00be90665fbf77 # master
46+ with :
47+ filename : ${{ env.APP_NAME }}/appinfo/info.xml
48+ expression : " //info//version/text()"
49+
50+ - name : Validate app version against tag
51+ run : |
52+ [ "${{ env.APP_VERSION }}" = "v${{ fromJSON(steps.app-version.outputs.result).version }}" ]
53+
3954 - name : Get appinfo data
4055 id : appinfo
41- uses : skjnldsv/xpath-action@7e6a7c379d0e9abc8acaef43df403ab4fc4f770c # master
56+ uses : skjnldsv/xpath-action@f5b036e9d973f42c86324833fd00be90665fbf77 # master
4257 with :
4358 filename : ${{ env.APP_NAME }}/appinfo/info.xml
4459 expression : " //info//dependencies//nextcloud/@min-version"
5671 - name : Set up node ${{ steps.versions.outputs.nodeVersion }}
5772 # Skip if no package.json
5873 if : ${{ steps.versions.outputs.nodeVersion }}
59- uses : actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
74+ uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
6075 with :
6176 node-version : ${{ steps.versions.outputs.nodeVersion }}
6277
7287 filename : ${{ env.APP_NAME }}/appinfo/info.xml
7388
7489 - name : Set up php ${{ steps.php-versions.outputs.php-min }}
75- uses : shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1
90+ uses : shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
7691 with :
7792 php-version : ${{ steps.php-versions.outputs.php-min }}
7893 coverage : none
@@ -134,9 +149,10 @@ jobs:
134149 unzip latest-$NCVERSION.zip
135150
136151 - name : Checkout server master fallback
137- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
152+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
138153 if : ${{ steps.server-checkout.outcome != 'success' }}
139154 with :
155+ persist-credentials : false
140156 submodules : true
141157 repository : nextcloud/server
142158 path : nextcloud
0 commit comments