diff --git a/.gitea/workflows/test-dispatch.yaml b/.gitea/workflows/test-dispatch.yaml index 022acf3..24c287b 100644 --- a/.gitea/workflows/test-dispatch.yaml +++ b/.gitea/workflows/test-dispatch.yaml @@ -14,7 +14,7 @@ jobs: - run: |- curl -sv "$GITHUB_API_URL/repos/codinget/actions-test/actions/workflows/test-inputs.yaml/dispatches" \ -X POST \ - -H "Authorization: token $GITEA_TOKEN" \ + -H "Authorization: token ${{ gitea.token }}" \ -H "Content-Type: application/json" \ -d '{ "ref": "refs/heads/main", @@ -28,6 +28,6 @@ jobs: - name: Install tea run: curl -sL "https://dl.gitea.com/tea/0.14.1/tea-0.14.1-linux-amd64" -o tea && chmod +x tea - name: Add token - run: ./tea login add --url "${{ gitea.server_url }}" --token "${{ gitea.token }}" + run: ./tea login add --url "${{ gitea.server_url }}" --token "${{ gitea.token }}" --name gitea - name: Trigger with tea - run: ./tea actions workflows dispatch -r "${{ gitea.repository }}" -r main --login "${{ gitea.server_url }}" test-inputs.yaml + run: ./tea actions workflows dispatch -r "${{ gitea.repository }}" -r main --login "gitea" test-inputs.yaml