authorized_gear_april_update #42
@@ -16,11 +16,12 @@ jobs:
|
|||||||
echo "sha: ${{ gitea.sha }}"
|
echo "sha: ${{ gitea.sha }}"
|
||||||
echo "api_url: ${{ gitea.api_url }}"
|
echo "api_url: ${{ gitea.api_url }}"
|
||||||
echo "workflow: ${{ gitea.workflow }}"
|
echo "workflow: ${{ gitea.workflow }}"
|
||||||
|
|
||||||
- name: Publish remote issue
|
- name: Publish remote issue
|
||||||
run: |
|
run: |
|
||||||
$headers = @{
|
$headers = @{
|
||||||
"accept" = "application/json"
|
"accept" = "application/json"
|
||||||
"Authorization" = "token ${{ secrets.RUNNER_ISSUE_TOKEN }}"
|
"Authorization" = "token ${{ secrets.RUNNER_ISSUE_TOKEN }}"
|
||||||
}
|
}
|
||||||
$response = Invoke-RestMethod -Uri "${{ gitea.api_url }}/repos/17th-Ranger-Battalion-ORG/MissionsForZGM/issues" -Method Post -Headers $headers -ContentType "application/json" -Body "{`"title`": `"publish-release`"}"
|
$response = Invoke-RestMethod -Uri "${{ gitea.api_url }}/repos/17th-Ranger-Battalion-ORG/MissionsForZGM/issues" -Method Post -Headers $headers -ContentType "application/json" -Body "{`"title`": `"publish-release`"}"
|
||||||
|
|
||||||
@@ -60,7 +61,7 @@ jobs:
|
|||||||
$revision = git rev-parse --short=10 HEAD
|
$revision = git rev-parse --short=10 HEAD
|
||||||
$tag = git describe --abbrev=0 --tags
|
$tag = git describe --abbrev=0 --tags
|
||||||
cd ..\MissionTemplate
|
cd ..\MissionTemplate
|
||||||
Compress-Archive MissionFramework mission-maker-template-v$tag-$revision.zip
|
Compress-Archive MissionTemplate mission-maker-template-v$tag-$revision.zip
|
||||||
|
|
||||||
- name: Add archive to release
|
- name: Add archive to release
|
||||||
uses: https://gitea.com/actions/gitea-release-action@v1.3.0
|
uses: https://gitea.com/actions/gitea-release-action@v1.3.0
|
||||||
|
|||||||
Reference in New Issue
Block a user