sync develop workflow
This commit is contained in:
@@ -13,6 +13,7 @@ jobs:
|
|||||||
echo "repository: ${{ gitea.repository }}"
|
echo "repository: ${{ gitea.repository }}"
|
||||||
echo "ref: ${{ gitea.ref }}"
|
echo "ref: ${{ gitea.ref }}"
|
||||||
echo "ref_name: ${{ gitea.ref_name }}"
|
echo "ref_name: ${{ gitea.ref_name }}"
|
||||||
|
echo "sha: ${{ gitea.sha }}"
|
||||||
echo "api_url: ${{ gitea.api_url }}"
|
echo "api_url: ${{ gitea.api_url }}"
|
||||||
echo "workflow: ${{ gitea.workflow }}"
|
echo "workflow: ${{ gitea.workflow }}"
|
||||||
|
|
||||||
@@ -43,7 +44,7 @@ jobs:
|
|||||||
"Authorization" = "token ${{secrets.RELEASE_TOKEN}}"
|
"Authorization" = "token ${{secrets.RELEASE_TOKEN}}"
|
||||||
}
|
}
|
||||||
Invoke-WebRequest -Uri "${{ gitea.api_url }}/repos/${{ gitea.repository }}/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: |
|
||||||
$headers = @{
|
$headers = @{
|
||||||
@@ -51,7 +52,15 @@ jobs:
|
|||||||
"Authorization" = "token ${{secrets.RELEASE_TOKEN}}"
|
"Authorization" = "token ${{secrets.RELEASE_TOKEN}}"
|
||||||
}
|
}
|
||||||
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
|
||||||
|
run: |
|
||||||
|
$headers = @{
|
||||||
|
"accept" = "application/json"
|
||||||
|
"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 }}`"}"
|
||||||
|
|
||||||
- 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
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user