1010 types : [published]
1111
1212env :
13- PHP_VERSION : 7.4
13+ PHP_VERSION : 8.1
1414
1515jobs :
1616 build_and_publish :
2121
2222 steps :
2323 - name : Check actor permission
24- uses : skjnldsv/check-actor-permission@v2
24+ uses : skjnldsv/check-actor-permission@e591dbfe838300c007028e1219ca82cc26e8d7c5 # v2.1
2525 with :
2626 require : write
2727
@@ -32,31 +32,31 @@ jobs:
3232 echo "APP_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
3333
3434 - name : Checkout
35- uses : actions/checkout@v3
35+ uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
3636 with :
3737 path : ${{ env.APP_NAME }}
3838
3939 - name : Get appinfo data
4040 id : appinfo
41- uses : skjnldsv/xpath-action@master
41+ uses : skjnldsv/xpath-action@7e6a7c379d0e9abc8acaef43df403ab4fc4f770c # master
4242 with :
4343 filename : ${{ env.APP_NAME }}/appinfo/info.xml
4444 expression : " //info//dependencies//nextcloud/@min-version"
4545
4646 - name : Read package.json node and npm engines version
47- uses : skjnldsv/read-package-engines-version-actions@v1.2
47+ uses : skjnldsv/read-package-engines-version-actions@1bdcee71fa343c46b18dc6aceffb4cd1e35209c6 # v1.2
4848 id : versions
4949 # Continue if no package.json
5050 continue-on-error : true
5151 with :
5252 path : ${{ env.APP_NAME }}
53- fallbackNode : " ^12 "
54- fallbackNpm : " ^6 "
53+ fallbackNode : " ^16 "
54+ fallbackNpm : " ^7 "
5555
5656 - name : Set up node ${{ steps.versions.outputs.nodeVersion }}
5757 # Skip if no package.json
5858 if : ${{ steps.versions.outputs.nodeVersion }}
59- uses : actions/setup-node@v3
59+ uses : actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3
6060 with :
6161 node-version : ${{ steps.versions.outputs.nodeVersion }}
6262
@@ -66,14 +66,16 @@ jobs:
6666 run : npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"
6767
6868 - name : Set up php ${{ env.PHP_VERSION }}
69- uses : shivammathur/setup-php@v2
69+ uses : shivammathur/setup-php@1a18b2267f80291a81ca1d33e7c851fe09e7dfc4 # v2
7070 with :
7171 php-version : ${{ env.PHP_VERSION }}
7272 coverage : none
73+ env :
74+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7375
7476 - name : Check composer.json
7577 id : check_composer
76- uses : andstor/file-existence-action@v2
78+ uses : andstor/file-existence-action@20b4d2e596410855db8f9ca21e96fbe18e12930b # v2
7779 with :
7880 files : " ${{ env.APP_NAME }}/composer.json"
7981
@@ -93,15 +95,15 @@ jobs:
9395
9496 - name : Check Krankerl config
9597 id : krankerl
96- uses : andstor/file-existence-action@v2
98+ uses : andstor/file-existence-action@20b4d2e596410855db8f9ca21e96fbe18e12930b # v2
9799 with :
98100 files : ${{ env.APP_NAME }}/krankerl.toml
99101
100102 - name : Install Krankerl
101103 if : steps.krankerl.outputs.files_exists == 'true'
102104 run : |
103- wget https://github.com/ChristophWurst/krankerl/releases/download/v0.13 .0/krankerl_0.13 .0_amd64.deb
104- sudo dpkg -i krankerl_0.13 .0_amd64.deb
105+ wget https://github.com/ChristophWurst/krankerl/releases/download/v0.14 .0/krankerl_0.14 .0_amd64.deb
106+ sudo dpkg -i krankerl_0.14 .0_amd64.deb
105107
106108 - name : Package ${{ env.APP_NAME }} ${{ env.APP_VERSION }} with krankerl
107109 if : steps.krankerl.outputs.files_exists == 'true'
@@ -124,7 +126,7 @@ jobs:
124126 unzip latest-$NCVERSION.zip
125127
126128 - name : Checkout server master fallback
127- uses : actions/checkout@v3
129+ uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
128130 if : ${{ steps.server-checkout.outcome != 'success' }}
129131 with :
130132 repository : nextcloud/server
@@ -146,7 +148,7 @@ jobs:
146148 tar -zcvf ${{ env.APP_NAME }}.tar.gz ${{ env.APP_NAME }}
147149
148150 - name : Attach tarball to github release
149- uses : svenstaro/upload-release-action@v2
151+ uses : svenstaro/upload-release-action@133984371c30d34e38222a64855679a414cb7575 # v2
150152 id : attach_to_release
151153 with :
152154 repo_token : ${{ secrets.GITHUB_TOKEN }}
@@ -156,7 +158,7 @@ jobs:
156158 overwrite : true
157159
158160 - name : Upload app to Nextcloud appstore
159- uses : nextcloud-releases/nextcloud-appstore-push-action@v1
161+ uses : nextcloud-releases/nextcloud-appstore-push-action@a011fe619bcf6e77ddebc96f9908e1af4071b9c1 # v1
160162 with :
161163 app_name : ${{ env.APP_NAME }}
162164 appstore_token : ${{ secrets.APPSTORE_TOKEN }}
0 commit comments