Update create-testing-snapshot.yaml
Some checks failed
Generate testing snapshot / Create testing release (push) Failing after 11s

This commit is contained in:
hizumi
2024-02-15 18:11:41 -06:00
parent 32491da46f
commit d71ba9e3bd

View File

@@ -53,21 +53,21 @@ jobs:
} }
Invoke-WebRequest -Uri "${{ gitea.api_url }}/repos/${{ gitea.repository }}/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 tag - name: Create new testing-release tag
# run: | run: |
# $headers = @{ $headers = @{
# "accept" = "application/json" "accept" = "application/json"
# "Authorization" = "token ${{secrets.RELEASE_TOKEN}}" "Authorization" = "token ${{secrets.RELEASE_TOKEN}}"
# } }
# Invoke-WebRequest -Uri "${{ gitea.api_url }}/repos/${{ gitea.repository }}/tags" -Method Post -Headers $headers -ContentType "application/json" -Body "{`"message`": `"testing-release`", `"tag_name`": `"testing-release`", `"target`": `"${{ gitea.sha }}`"}" Invoke-WebRequest -Uri "${{ gitea.api_url }}/repos/${{ gitea.repository }}/tags" -Method Post -Headers $headers -ContentType "application/json" -Body "{`"message`": `"testing-release`", `"tag_name`": `"testing-release`", `"target`": `"${{ gitea.sha }}`"}"
# - name: Create new testing-release release - name: Create new testing-release release
# run: | run: |
# $headers = @{ $headers = @{
# "accept" = "application/json" "accept" = "application/json"
# "Authorization" = "token ${{secrets.RELEASE_TOKEN}}" "Authorization" = "token ${{secrets.RELEASE_TOKEN}}"
# } }
# Invoke-WebRequest -Uri "${{ gitea.api_url }}/repos/${{ gitea.repository }}/releases" -Method Post -Headers $headers -ContentType "application/json" -Body "{`"tag_name`": `"testing-release`", `"tag_target`": `"develop`", `"name`": `"testing-release`", `"prerelease`": true}" Invoke-WebRequest -Uri "${{ gitea.api_url }}/repos/${{ gitea.repository }}/releases" -Method Post -Headers $headers -ContentType "application/json" -Body "{`"body`": `"testing-release`", `"name`": `"testing-release`", `"prerelease`": `"on`", `"tag_name`": `"testing_release`", `"target_commitish`": `"${{ gitea.sha }}`"}"
# - name: Create new testing-release attachment # - name: Create new testing-release attachment
# run: | # run: |
@@ -77,9 +77,10 @@ jobs:
# } # }
# Invoke-WebRequest -Uri "${{ gitea.api_url }}/repos/${{ gitea.repository }}/tags" -Method Post -Headers $headers -ContentType "application/json" -Body "{`"message`": `"testing-release`", `"tag_name`": `"testing-release`", `"target`": `"${{ gitea.sha }}`"}" # Invoke-WebRequest -Uri "${{ gitea.api_url }}/repos/${{ gitea.repository }}/tags" -Method Post -Headers $headers -ContentType "application/json" -Body "{`"message`": `"testing-release`", `"tag_name`": `"testing-release`", `"target`": `"${{ gitea.sha }}`"}"
- name: Upload testing-release attachment
- name: Create testing-release release uses: svenstaro/upload-release-action@v2
uses: aaiezza/create-release@master
with: with:
release_branch: develop file: framework-test-snapshot.zip
tag: "testing-release" asset_name: framework-test-snapshot.zip
tag: 'testing-release'
overwrite: true