#1 : Publish generic package to gitea #2
@@ -8,17 +8,10 @@ jobs:
|
||||
self-test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Debug actions context
|
||||
run: |
|
||||
echo "secret source: ${{ gitea.secret_source }}"
|
||||
echo "secret length: ${#TEST_SECRET}"
|
||||
echo "variable: ${{ vars.VAR_TEST }}"
|
||||
env:
|
||||
TEST_SECRET: ${{ secrets.SECRET_TEST }}
|
||||
- run: touch text.txt
|
||||
- uses: https://source.vague.tech/open-vague/ci-actions/publish@feature/1-publish
|
||||
with:
|
||||
file: text.txt
|
||||
package: control-room-sdk-godoc
|
||||
package: a-proper-test-package
|
||||
version: master
|
||||
force: false
|
||||
force: false
|
||||
+1
-2
@@ -20,8 +20,7 @@ runs:
|
||||
steps:
|
||||
- shell: bash
|
||||
run: |
|
||||
echo "Token: ${{ secrets.SECRET_TEST }}, ${{ vars.VAR_TEST }}! ${{ secrets.SECRET_SOME }}, ${{ vars.VAR_SOME }}?"
|
||||
curl -i --fail-with-body \
|
||||
curl --fail-with-body \
|
||||
--user "acti-bot:${{ secrets.ACTI_BOT_TOKEN }}" \
|
||||
--upload-file ${{ inputs.file }} \
|
||||
"${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/generic/${{ inputs.package }}/${{ inputs.version }}/${{ inputs.file }}"
|
||||
|
||||
Reference in New Issue
Block a user