Do not use GITHUB_OUTPUT

This commit is contained in:
Antoine Martin 2024-09-09 20:04:02 -04:00
parent 4fa03b9f46
commit 063442dac9
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -33,7 +33,6 @@ jobs:
else
CI_REF_NAME=$GITHUB_REF_NAME
fi
echo "CI_REF_NAME=$CI_REF_NAME" >> $GITHUB_OUTPUT
echo "building tarball for $CI_REF_NAME"
git-archive-all --force-submodules $CI_PROJECT_NAME-$CI_REF_NAME.tar.gz
echo "Generating sha512sum"
@ -56,5 +55,10 @@ jobs:
uses: forgejo/download-artifact@v3
- name: Package deployment
run: |
if test $GITHUB_REF_NAME == "ci" ; then
CI_REF_NAME=${{ inputs.ref_name }}
else
CI_REF_NAME=$GITHUB_REF_NAME
fi
curl --user ${{ vars.CODE_FORGEJO_USER }}:${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file ./tarball/zotero-*.tar.gz ${{ github.server_url }}/api/packages/mirrors/generic/zotero/$CI_REF_NAME/zotero-$CI_REF_NAME.tar.gz
curl --user ${{ vars.CODE_FORGEJO_USER }}:${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file ./tarball/zotero-*.tar.gz.sha512sum ${{ github.server_url }}/api/packages/mirrors/generic/zotero/$CI_REF_NAME/zotero-$CI_REF_NAME.tar.gz.sha512sum