Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.

Commit b160c77

Browse files
committed
update trigger to use rpc
1 parent 9c5a113 commit b160c77

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/external_trigger.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ jobs:
2929
echo "> [!NOTE]" >> $GITHUB_STEP_SUMMARY
3030
echo "> External trigger running off of master branch. To disable this trigger, add \`citron_master\` into the Github organizational variable \`SKIP_EXTERNAL_TRIGGER\`." >> $GITHUB_STEP_SUMMARY
3131
printf "\n## Retrieving external version\n\n" >> $GITHUB_STEP_SUMMARY
32-
EXT_RELEASE=$(curl -sL https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=citron | awk -F'=' '/^pkgver=/ {print $2}')
32+
EXT_RELEASE=$(curl -s 'https://aur.archlinux.org/rpc/v5/info?arg[]=citron' | jq -r '.results[] | select(.Name == "citron") | .Version'
33+
)
3334
echo "Type is \`custom_version_command\`" >> $GITHUB_STEP_SUMMARY
3435
if grep -q "^citron_master_${EXT_RELEASE}" <<< "${SKIP_EXTERNAL_TRIGGER}"; then
3536
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY

Jenkinsfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ pipeline {
147147
steps{
148148
script{
149149
env.EXT_RELEASE = sh(
150-
script: ''' curl -sL https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=citron | awk -F'=' '/^pkgver=/ {print $2}' ''',
150+
script: ''' curl -s 'https://aur.archlinux.org/rpc/v5/info?arg[]=citron' | jq -r '.results[] | select(.Name == "citron") | .Version'
151+
''',
151152
returnStdout: true).trim()
152153
env.RELEASE_LINK = 'custom_command'
153154
}

jenkins-vars.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
# jenkins variables
44
project_name: docker-citron
55
external_type: na
6-
custom_version_command: "curl -sL https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=citron | awk -F'=' '/^pkgver=/ {print $2}'"
6+
custom_version_command: |
7+
curl -s 'https://aur.archlinux.org/rpc/v5/info?arg[]=citron' | jq -r '.results[] | select(.Name == "citron") | .Version'
78
release_type: stable
89
release_tag: latest
910
ls_branch: master

0 commit comments

Comments
 (0)