diff --git a/.gitea/workflows/create-testing-snapshot.yaml b/.gitea/workflows/create-testing-snapshot.yaml index 5b7d666..e919373 100644 --- a/.gitea/workflows/create-testing-snapshot.yaml +++ b/.gitea/workflows/create-testing-snapshot.yaml @@ -8,6 +8,14 @@ jobs: name: Create testing release runs-on: windows steps: + - name: Diagnostics + run: | + echo "repository: ${{ gitea.repository }}" + echo "ref: ${{ gitea.ref }}" + echo "ref_name: ${{ gitea.ref_name }}" + echo "api_url: ${{ gitea.api_url }}" + echo "workflow: ${{ gitea.workflow }}" + - name: Checkout framework uses: actions/checkout@v3 with: @@ -34,7 +42,7 @@ jobs: "accept" = "application/json" "Authorization" = "token ${{secrets.RELEASE_TOKEN}}" } - Invoke-WebRequest -Uri "https://gitea.iceberg-gaming.com/api/v1/repos/hizumi/MissionTemplate/releases/tags/testing-release" -Method Delete -Headers $headers + Invoke-WebRequest -Uri "${{ gitea.api_url }}/repos/${{ gitea.repository }}/releases/tags/testing-release" -Method Delete -Headers $headers - name: Delete old testing-release tag run: | @@ -42,7 +50,7 @@ jobs: "accept" = "application/json" "Authorization" = "token ${{secrets.RELEASE_TOKEN}}" } - Invoke-WebRequest -Uri "https://gitea.iceberg-gaming.com/api/v1/repos/hizumi/MissionTemplate/tags/testing-release" -Method Delete -Headers $headers + Invoke-WebRequest -Uri "${{ gitea.api_url }}/repos/${{ gitea.repository }}/tags/testing-release" -Method Delete -Headers $headers - name: Create new testing-release uses: https://gitea.com/actions/gitea-release-action@v1.1.6