diff --git a/publish/action.yaml b/publish/action.yaml index c26b0bb..40d6f7f 100644 --- a/publish/action.yaml +++ b/publish/action.yaml @@ -19,8 +19,11 @@ runs: using: composite steps: - shell: bash + env: + GITEA_TOKEN: ${{ secrets.ACTI_BOT_TOKEN }} run: | + test -n "$GITEA_TOKEN" curl -i --fail-with-body \ - --user "acti-bot:${{ secrets.ACTI_BOT_TOKEN }}" \ + --user "acti-bot:${GITEA_TOKEN}" \ --upload-file ${{ inputs.file }} \ "${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/generic/${{ inputs.package }}/${{ inputs.version }}/${{ inputs.file }}"