Allow manual AUR publish reruns via workflow_dispatch
This commit is contained in:
12
.github/workflows/aur-publish.yml
vendored
12
.github/workflows/aur-publish.yml
vendored
@@ -4,6 +4,12 @@ on:
|
|||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "v*"
|
- "v*"
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
tag:
|
||||||
|
description: "Tag to publish to AUR (e.g. v0.1.0-alpha.8)"
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -23,9 +29,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ inputs.tag || github.ref_name }}
|
||||||
|
|
||||||
- name: Generate PKGBUILD (deskify-bin)
|
- name: Generate PKGBUILD (deskify-bin)
|
||||||
run: bash packaging/generate-pkgbuild-bin.sh "${GITHUB_REF_NAME}"
|
run: bash packaging/generate-pkgbuild-bin.sh "${{ inputs.tag || github.ref_name }}"
|
||||||
|
|
||||||
- name: Generate .SRCINFO
|
- name: Generate .SRCINFO
|
||||||
run: |
|
run: |
|
||||||
@@ -74,5 +82,5 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
git add PKGBUILD .SRCINFO
|
git add PKGBUILD .SRCINFO
|
||||||
git commit -m "Update deskify-bin to ${GITHUB_REF_NAME}"
|
git commit -m "Update deskify-bin to ${{ inputs.tag || github.ref_name }}"
|
||||||
git push
|
git push
|
||||||
|
|||||||
Reference in New Issue
Block a user