From 68f35a9b44697b7747496e53d916203bccf220f7 Mon Sep 17 00:00:00 2001 From: hizumi <> Date: Tue, 13 Feb 2024 22:46:39 -0600 Subject: [PATCH] Update create-testing-snapshot.yaml add environment diagnostics and update webrequest url to use built in environment variables --- .gitea/workflows/create-testing-snapshot.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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