Merge pull request #29 from DreamingRaven/renovate/ecmwf-cdsapi-0.x #53
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '*/PKGBUILD' | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | |
with: | |
fetch-depth: 0 | |
- name: Find updated package | |
run: | | |
#!/usr/bin/env bash | |
set -euxo pipefail | |
echo "pkgbuild=$(git diff --name-only HEAD HEAD~1 "*/.SRCINFO" | head -1 | xargs dirname)" >> $GITHUB_ENV | |
- name: Publish package | |
uses: KSXGitHub/[email protected] | |
if: ${{ env.pkgbuild != '' }} | |
with: | |
pkgname: ${{ env.pkgbuild }} | |
pkgbuild: ${{ env.pkgbuild }}/PKGBUILD | |
commit_username: ${{ secrets.AUR_USERNAME }} | |
commit_email: ${{ secrets.AUR_EMAIL }} | |
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} | |
ssh_keyscan_types: rsa,ecdsa,ed25519 | |
commit_message: Actions update AUR package |