use env var for workdir
This commit is contained in:
parent
0ed620b225
commit
cb565c73bb
1 changed files with 4 additions and 3 deletions
|
|
@ -51,7 +51,7 @@ runs:
|
|||
- name: Update package
|
||||
id: update
|
||||
shell: bash
|
||||
working-directory: /workspace/xengi/archlinux-aur/${{ inputs.package-name }}
|
||||
working-directory: ${{ env.FORGEJO_WORKSPACE }}/${{ inputs.package-name }}
|
||||
run: |
|
||||
if [ "${{ inputs.git-package }}" != "true" ]; then
|
||||
sed -i "s/^pkgver=.*/pkgver=${{ inputs.upstream-version }}/" PKGBUILD
|
||||
|
|
@ -71,7 +71,7 @@ runs:
|
|||
|
||||
- name: Test package
|
||||
shell: bash
|
||||
working-directory: /workspace/xengi/archlinux-aur/${{ inputs.package-name }}
|
||||
working-directory: ${{ env.FORGEJO_WORKSPACE }}/${{ inputs.package-name }}
|
||||
run: |
|
||||
makepkg -csi --noconfirm --noprogressbar
|
||||
namcap -i PKGBUILD
|
||||
|
|
@ -81,7 +81,7 @@ runs:
|
|||
- name: Upload new package
|
||||
if: ${{ inputs.git-package == 'true' && steps.update.outputs.modified == 'yes' || inputs.git-package != 'true' && inputs.upstream-version != inputs.aur-version }}
|
||||
shell: bash
|
||||
working-directory: /workspace/xengi/archlinux-aur/${{ inputs.package-name }}
|
||||
working-directory: ${{ env.FORGEJO_WORKSPACE }}/${{ inputs.package-name }}
|
||||
env:
|
||||
PUSHOVER_API_TOKEN: ${{ secrets.PUSHOVER_API_TOKEN }}
|
||||
PUSHOVER_USER_KEY: ${{ secrets.PUSHOVER_USER_KEY }}
|
||||
|
|
@ -121,3 +121,4 @@ runs:
|
|||
--form-string "url_title=Forgejo Pipeline" \
|
||||
--form-string "url=${{ env.FORGEJO_SERVER_URL }}/${{ env.FORGEJO_REPOSITORY }}/actions?workflow=packages.yaml&actor=0&status=0" \
|
||||
https://api.pushover.net/1/messages.json || true
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue