Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
chore(actions-bootstrap): update default actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bootstrap-package-actions committed Jan 17, 2021
1 parent 3179746 commit 4d95e57
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/pkgbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ jobs:
run: |
exec 1>>log 2> >(tee -a x86_64.${REPO_NAME}.$(date +%s).log >&2)
sudo -u builder makepkg -s --noconfirm
echo "FILE_NAME_X86_64=$(basename $(find . -type f \( -name "*x86_64*.zst" -o -name "*any*.zst" \)))" >> $GITHUB_ENV
echo "VERSION=$(find ./pkg -name ".PKGINFO" -exec cat {} \; | grep pkgver | sed -e 's/^pkgver = //')" >> $GITHUB_ENV
-
name: upload_release_x86
if: ${{ env.X86_64 == 'true' }}
Expand All @@ -81,11 +79,11 @@ jobs:
if: ${{ env.AARCH64 == 'true' }}
run: |
exec 1>>log 2> >(tee -a x86_64.${REPO_NAME}.$(date +%s).log >&2)
sudo -u builder aarch64-makepkg -s --noconfirm | tee aarch64.${REPO_NAME}.$(date +%s).log
echo "FILE_NAME_AARCH64=$(basename $(find . -type f -regextype posix-extended -regex '^.*(aarch64).*'))" >> $GITHUB_ENV
echo "VERSION=$(find ./pkg -name ".PKGINFO" -exec cat {} \; | grep pkgver | sed -e 's/^pkgver = //')" >> $GITHUB_ENV
-
name: get version
run: echo "VERSION="$(find ./pkg -name ".PKGINFO" -exec cat {} \; | grep pkgver | sed -e 's/^pkgver = //')"" >> $GITHUB_ENV
-
name: upload_release_aarch64
if: ${{ env.AARCH64 == 'true' }}
Expand All @@ -112,17 +110,12 @@ jobs:
with:
name: logs
path: ./*.log
- name: Dump steps context
if: ${{ failure() }}
env:
STEPS_CONTEXT: ${{ toJson(steps) }}
run: echo "$STEPS_CONTEXT"
-
name: delete release if pkgbuild failed
if: ${{ failure() }}
if: ${{ failure() && (steps.pkgbuild_aarch64.outcome != 'success' || steps.pkgbuild_x86_64.outcome != 'success') }}
uses: dev-drprasad/[email protected]
with:
delete_release: true
tag_name: ${{ env.VERSION && (steps.pkgbuild_aarch64.outcome != 'success' || steps.pkgbuild_x86_64.outcome != 'success')}}
tag_name: ${{ env.VERSION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4d95e57

Please sign in to comment.