mirror of
https://github.com/Vita3K/compatibility.git
synced 2024-12-04 03:32:41 +00:00
Update ghr to 0.17.0
This commit is contained in:
parent
ad6cccb4c6
commit
95981a8f02
8
.github/workflows/update_compat_db.yml
vendored
8
.github/workflows/update_compat_db.yml
vendored
@ -4,6 +4,10 @@ on:
|
||||
push:
|
||||
issues:
|
||||
|
||||
concurrency:
|
||||
group: ci-${{ github.event_name }}-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.event_name == 'issues' }}
|
||||
|
||||
jobs:
|
||||
update_compat_db:
|
||||
runs-on: windows-latest
|
||||
@ -93,7 +97,7 @@ jobs:
|
||||
|
||||
- name: Upload compatibility database
|
||||
run: |
|
||||
Invoke-WebRequest "https://github.com/tcnksm/ghr/releases/download/v0.16.2/ghr_v0.16.2_windows_amd64.zip" -OutFile ghr.zip
|
||||
Invoke-WebRequest "https://github.com/tcnksm/ghr/releases/download/v0.17.0/ghr_v0.17.0_windows_amd64.zip" -OutFile ghr.zip
|
||||
Expand-Archive -Force -Path ghr.zip -DestinationPath '.'
|
||||
$releases = Invoke-RestMethod -Uri "https://api.github.com/repos/Vita3K/compatibility/releases" -Headers @{Authorization = "Bearer $env:GITHUB_TOKEN"}
|
||||
if ($releases -ne $null) {
|
||||
@ -101,6 +105,6 @@ jobs:
|
||||
Invoke-RestMethod -Uri $release.url -Method DELETE -Headers @{Authorization = "Bearer $env:GITHUB_TOKEN"}
|
||||
}
|
||||
}
|
||||
.\ghr_v0.16.2_windows_amd64\ghr -u Vita3K -r compatibility -n "Automatic CI generated database" -b "Corresponding issue: #${{ env.issue_id_updated }} for App: ${{ env.app_updated_title }}`r`nLast updated: ${{ env.db_updated_at }}`r`n<!-- Updated at: ${{ env.db_updated_at_old }} -->" -t "${{ secrets.GITHUB_TOKEN }}" compat_db compat_dbs/
|
||||
.\ghr_v0.17.0_windows_amd64\ghr -u Vita3K -r compatibility -n "Automatic CI generated database" -b "Corresponding issue: #${{ env.issue_id_updated }} for App: ${{ env.app_updated_title }}`r`nLast updated: ${{ env.db_updated_at }}`r`n<!-- Updated at: ${{ env.db_updated_at_old }} -->" -t "${{ secrets.GITHUB_TOKEN }}" compat_db compat_dbs/
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
Loading…
Reference in New Issue
Block a user