Update .forgejo/workflows/packages.yaml
Signed-off-by: xengi <forgejo@xengi.de>
This commit is contained in:
parent
f5174a4d31
commit
1ca9576d9d
1 changed files with 2 additions and 33 deletions
|
|
@ -221,37 +221,6 @@ jobs:
|
||||||
aur-ssh-private-key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
aur-ssh-private-key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
||||||
pushover-api-token: ${{ secrets.PUSHOVER_API_TOKEN }}
|
pushover-api-token: ${{ secrets.PUSHOVER_API_TOKEN }}
|
||||||
pushover-user-key: ${{ secrets.PUSHOVER_USER_KEY }}
|
pushover-user-key: ${{ secrets.PUSHOVER_USER_KEY }}
|
||||||
|
|
||||||
python-driftdeck:
|
|
||||||
runs-on: debian-stable
|
|
||||||
env:
|
|
||||||
PACKAGE_NAME: python-driftdeck
|
|
||||||
container:
|
|
||||||
image: git.sb20.xengi.de/xengi/archlinux-aur:latest
|
|
||||||
credentials:
|
|
||||||
username: xengi
|
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
run: git clone "https://x-access-token:${FORGEJO_TOKEN}@${FORGEJO_SERVER_URL#https://}/${FORGEJO_REPOSITORY}.git" "$FORGEJO_WORKSPACE"
|
|
||||||
- name: Install dependencies
|
|
||||||
run: yay -Sy --needed --noconfirm --noprogressbar curl jq
|
|
||||||
- name: Get versions
|
|
||||||
id: versions
|
|
||||||
run: |
|
|
||||||
echo upstream=$(curl -fsSL "https://pypi.org/pypi/${{ env.PACKAGE_NAME }}/json" | jq -er '.info.version') >> "$FORGEJO_OUTPUT"
|
|
||||||
echo aur=$(curl -fsSL 'https://aur.archlinux.org/rpc/?v=5&type=info&arg[]=${{ env.PACKAGE_NAME }}' | jq -er '.results[0].Version | split("-")[0]') >> "$FORGEJO_OUTPUT"
|
|
||||||
- uses: ./.forgejo/actions/update-aur-package
|
|
||||||
with:
|
|
||||||
package-name: ${{ env.PACKAGE_NAME }}
|
|
||||||
upstream-version: ${{ steps.versions.outputs.upstream }}
|
|
||||||
aur-version: ${{ steps.versions.outputs.aur }}
|
|
||||||
test-command: driftdeck --help
|
|
||||||
commit-message: bumped to version ${{ steps.versions.outputs.upstream }}
|
|
||||||
notify-message: ${{ env.PACKAGE_NAME }} updated from ${{ steps.versions.outputs.aur }} to ${{ steps.versions.outputs.upstream }}
|
|
||||||
aur-ssh-private-key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
|
||||||
pushover-api-token: ${{ secrets.PUSHOVER_API_TOKEN }}
|
|
||||||
pushover-user-key: ${{ secrets.PUSHOVER_USER_KEY }}
|
|
||||||
|
|
||||||
python-q:
|
python-q:
|
||||||
runs-on: debian-stable
|
runs-on: debian-stable
|
||||||
|
|
@ -270,7 +239,7 @@ jobs:
|
||||||
- name: Get versions
|
- name: Get versions
|
||||||
id: versions
|
id: versions
|
||||||
run: |
|
run: |
|
||||||
echo upstream=$(curl -fsSL "https://pypi.org/pypi/${{ env.PACKAGE_NAME }}/json" | jq -er '.info.version') >> "$FORGEJO_OUTPUT"
|
echo upstream=$(curl -fsSL "https://pypi.org/pypi/${PACKAGE_NAME#python-}/json" | jq -er '.info.version') >> "$FORGEJO_OUTPUT"
|
||||||
echo aur=$(curl -fsSL 'https://aur.archlinux.org/rpc/?v=5&type=info&arg[]=${{ env.PACKAGE_NAME }}' | jq -er '.results[0].Version | split("-")[0]') >> "$FORGEJO_OUTPUT"
|
echo aur=$(curl -fsSL 'https://aur.archlinux.org/rpc/?v=5&type=info&arg[]=${{ env.PACKAGE_NAME }}' | jq -er '.results[0].Version | split("-")[0]') >> "$FORGEJO_OUTPUT"
|
||||||
- uses: ./.forgejo/actions/update-aur-package
|
- uses: ./.forgejo/actions/update-aur-package
|
||||||
with:
|
with:
|
||||||
|
|
@ -433,7 +402,7 @@ jobs:
|
||||||
- name: Get versions
|
- name: Get versions
|
||||||
id: versions
|
id: versions
|
||||||
run: |
|
run: |
|
||||||
echo upstream=$(curl -fsSL "https://pypi.org/pypi/${{ env.PACKAGE_NAME }}/json" | jq -er '.info.version') >> "$FORGEJO_OUTPUT"
|
echo upstream=$(curl -fsSL "https://pypi.org/pypi/${PACKAGE_NAME#python-}/json" | jq -er '.info.version') >> "$FORGEJO_OUTPUT"
|
||||||
echo aur=$(curl -fsSL 'https://aur.archlinux.org/rpc/?v=5&type=info&arg[]=${{ env.PACKAGE_NAME }}' | jq -er '.results[0].Version | split("-")[0]') >> "$FORGEJO_OUTPUT"
|
echo aur=$(curl -fsSL 'https://aur.archlinux.org/rpc/?v=5&type=info&arg[]=${{ env.PACKAGE_NAME }}' | jq -er '.results[0].Version | split("-")[0]') >> "$FORGEJO_OUTPUT"
|
||||||
- uses: ./.forgejo/actions/update-aur-package
|
- uses: ./.forgejo/actions/update-aur-package
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue