Add jq install and debug
This commit is contained in:
13
.github/workflows/build-and-release.yml
vendored
13
.github/workflows/build-and-release.yml
vendored
@@ -184,18 +184,31 @@ jobs:
|
|||||||
needs: release
|
needs: release
|
||||||
env:
|
env:
|
||||||
AUR_TOKEN: ${{ secrets.AUR_TOKEN }}
|
AUR_TOKEN: ${{ secrets.AUR_TOKEN }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout git repo
|
- name: Checkout git repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install jq
|
||||||
|
run: sudo apt-get update && sudo apt-get install jq -y
|
||||||
|
|
||||||
- name: Download checksums
|
- name: Download checksums
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: checksums
|
name: checksums
|
||||||
path: ./sha256sum.txt
|
path: ./sha256sum.txt
|
||||||
|
|
||||||
|
- name: List downloaded files
|
||||||
|
run: ls -R
|
||||||
|
|
||||||
|
- name: Show content of sha256sum.txt
|
||||||
|
run: cat sha256sum.txt
|
||||||
|
|
||||||
- name: Extract checksum from sha256sum.txt
|
- name: Extract checksum from sha256sum.txt
|
||||||
run: |
|
run: |
|
||||||
new_checksum=$(awk 'NR==1 { print $1 }' ./sha256sum.txt)
|
new_checksum=$(awk 'NR==1 { print $1 }' ./sha256sum.txt)
|
||||||
sed -i "s|sha256sums=('SKIP' 'SKIP')|sha256sums=('$new_checksum' 'SKIP')|" ./build/PKGBUILD
|
sed -i "s|sha256sums=('SKIP' 'SKIP')|sha256sums=('$new_checksum' 'SKIP')|" ./build/PKGBUILD
|
||||||
|
|
||||||
- name: Publish AUR package
|
- name: Publish AUR package
|
||||||
uses: KSXGitHub/github-actions-deploy-aur@v3.0.1
|
uses: KSXGitHub/github-actions-deploy-aur@v3.0.1
|
||||||
with:
|
with:
|
||||||
|
Reference in New Issue
Block a user