From 524eafb9e2f3258462c87cd0c9c5f12d7ece0a35 Mon Sep 17 00:00:00 2001 From: Dan Haman Date: Mon, 28 Sep 2026 00:04:09 +0300 Subject: [PATCH] #1 : Publish generic package to gitea + token move to env --- .gitea/workflows/test.yaml | 25 +++---------------------- publish/action.yaml | 5 +---- 2 files changed, 4 insertions(+), 26 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index b912c46..7190ac8 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -4,32 +4,13 @@ on: branches-ignore: - master +env: + ACTI_BOT_TOKEN: ${{ secrets.ACTI_BOT_TOKEN }} + jobs: self-test: runs-on: ubuntu-latest 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 - uses: https://source.vague.tech/open-vague/ci-actions/publish@feature/1-publish with: diff --git a/publish/action.yaml b/publish/action.yaml index ca55266..2595058 100644 --- a/publish/action.yaml +++ b/publish/action.yaml @@ -19,11 +19,8 @@ runs: using: composite steps: - shell: bash - env: - TOKEN: ${{ secrets.TEST_SECRET }} run: | - echo 'Len: ' ${#TOKEN} curl --fail-with-body \ - --user "acti-bot:${TOKEN}" \ + --user "acti-bot:${ACTI_BOT_TOKEN}" \ --upload-file ${{ inputs.file }} \ "${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/generic/${{ inputs.package }}/${{ inputs.version }}/${{ inputs.file }}"