variabilize actions
This commit is contained in:
parent
07c63e6c9c
commit
e2b7a488b8
@ -55,7 +55,7 @@ jobs:
|
|||||||
- uses: akkuman/gitea-release-action@v1
|
- uses: akkuman/gitea-release-action@v1
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
build/artifacts/app_template.tar.gz
|
build/artifacts/${{ gitea.event.repository.name }}.tar.gz
|
||||||
- uses: FKLC/sign-files-action@v1.0.0
|
- uses: FKLC/sign-files-action@v1.0.0
|
||||||
with:
|
with:
|
||||||
privateKey: ${{ secrets.PRIVATEKEY }}
|
privateKey: ${{ secrets.PRIVATEKEY }}
|
||||||
@ -63,13 +63,13 @@ jobs:
|
|||||||
extension: .sig
|
extension: .sig
|
||||||
outputFolder: build/artifacts
|
outputFolder: build/artifacts
|
||||||
files: |
|
files: |
|
||||||
build/artifacts/app_template.tar.gz
|
build/artifacts/${{ gitea.event.repository.name }}.tar.gz
|
||||||
- id: sign
|
- id: sign
|
||||||
run: echo "SIGNATURE=$(cat build/artifacts/app_template.tar.gz.sig | openssl base64 -A)" >> $GITHUB_OUTPUT
|
run: echo "SIGNATURE=$(cat build/artifacts/${{ gitea.event.repository.name }}.tar.gz.sig | openssl base64 -A)" >> $GITHUB_OUTPUT
|
||||||
- uses: actionsflow/axios@v1
|
- uses: actionsflow/axios@v1
|
||||||
with:
|
with:
|
||||||
url: https://apps.nextcloud.com/api/v1/apps/releases
|
url: https://apps.nextcloud.com/api/v1/apps/releases
|
||||||
method: POST
|
method: POST
|
||||||
accept: 200,201
|
accept: 200,201
|
||||||
headers: '{ "Authorization": "Token <<<${{ secrets.TOKEN }}>>>" }'
|
headers: '{ "Authorization": "Token <<<${{ secrets.TOKEN }}>>>" }'
|
||||||
data: '{ "download": "https://git.crystalyx.net/Xefir/app_template/releases/download/<<<${{ gitea.ref_name }}>>>/app_template.tar.gz", "signature": "<<<${{ steps.sign.outputs.SIGNATURE }}>>>" }'
|
data: '{ "download": "https://git.crystalyx.net/${{ gitea.repository }}/releases/download/<<<${{ gitea.ref_name }}>>>/${{ gitea.event.repository.name }}.tar.gz", "signature": "<<<${{ steps.sign.outputs.SIGNATURE }}>>>" }'
|
||||||
|
Loading…
Reference in New Issue
Block a user