#1 : Publish generic package to gitea
Core Build (push) / self-test (push) Successful in 11s
Core Build (push) / self-test (push) Successful in 11s
+ token move to env
This commit is contained in:
@@ -4,32 +4,13 @@ on:
|
|||||||
branches-ignore:
|
branches-ignore:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
env:
|
||||||
|
ACTI_BOT_TOKEN: ${{ secrets.ACTI_BOT_TOKEN }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
self-test:
|
self-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Test local
|
|
||||||
env:
|
|
||||||
LOCAL: ${{ secrets.TEST_SECRET }}
|
|
||||||
run: |
|
|
||||||
if [ -z "$LOCAL" ]; then
|
|
||||||
echo "EMPTY"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "PRESENT"
|
|
||||||
echo "length=${#LOCAL}"
|
|
||||||
- name: Test org
|
|
||||||
env:
|
|
||||||
GLOBAL: ${{ secrets.BOT_SECRET }}
|
|
||||||
run: |
|
|
||||||
if [ -z "$GLOBAL" ]; then
|
|
||||||
echo "EMPTY"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "PRESENT"
|
|
||||||
echo "length=${#GLOBAL}"
|
|
||||||
- run: touch text.txt
|
- run: touch text.txt
|
||||||
- uses: https://source.vague.tech/open-vague/ci-actions/publish@feature/1-publish
|
- uses: https://source.vague.tech/open-vague/ci-actions/publish@feature/1-publish
|
||||||
with:
|
with:
|
||||||
|
|||||||
+1
-4
@@ -19,11 +19,8 @@ runs:
|
|||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
- shell: bash
|
- shell: bash
|
||||||
env:
|
|
||||||
TOKEN: ${{ secrets.TEST_SECRET }}
|
|
||||||
run: |
|
run: |
|
||||||
echo 'Len: ' ${#TOKEN}
|
|
||||||
curl --fail-with-body \
|
curl --fail-with-body \
|
||||||
--user "acti-bot:${TOKEN}" \
|
--user "acti-bot:${ACTI_BOT_TOKEN}" \
|
||||||
--upload-file ${{ inputs.file }} \
|
--upload-file ${{ inputs.file }} \
|
||||||
"${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/generic/${{ inputs.package }}/${{ inputs.version }}/${{ inputs.file }}"
|
"${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/generic/${{ inputs.package }}/${{ inputs.version }}/${{ inputs.file }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user