Update create-testing-snapshot.yaml
All checks were successful
Generate testing snapshot / Create testing release (push) Successful in 31s

add environment diagnostics and update webrequest url to use built in environment variables
This commit is contained in:
hizumi
2024-02-13 22:46:39 -06:00
parent f11cadbd06
commit 68f35a9b44

View File

@@ -8,6 +8,14 @@ jobs:
name: Create testing release name: Create testing release
runs-on: windows runs-on: windows
steps: 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 - name: Checkout framework
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
@@ -34,7 +42,7 @@ jobs:
"accept" = "application/json" "accept" = "application/json"
"Authorization" = "token ${{secrets.RELEASE_TOKEN}}" "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 - name: Delete old testing-release tag
run: | run: |
@@ -42,7 +50,7 @@ jobs:
"accept" = "application/json" "accept" = "application/json"
"Authorization" = "token ${{secrets.RELEASE_TOKEN}}" "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 - name: Create new testing-release
uses: https://gitea.com/actions/gitea-release-action@v1.1.6 uses: https://gitea.com/actions/gitea-release-action@v1.1.6