Skip to content

Commit

Permalink
Jenkins hooks (#115)
Browse files Browse the repository at this point in the history
* Remove deprecated set-output command

https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

* Add password

The authentication token is not enough on it's own, but is still required
from scripts.

Might be able to get around that if using a HTTP POST
  • Loading branch information
jhriv authored Nov 30, 2023
1 parent c26af5c commit f8943a6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/tag-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ jobs:
- name: Tag name
id: extract_tag
run: |
VERSION_TAG=${GITHUB_REF##*/}
echo ::set-output name=versionTag::${VERSION_TAG}
echo "VERSION_TAG=${GITHUB_REF##*/}" >> "$GITHUB_ENV"
- name: Jenkins webhook
uses: enflo/curl-action@fabe347922c7a9e88bafa15c4b7d6326ea802695
with:
curl: 'https://${{ secrets.JENKINS_USER }}@${{ secrets.JENKINS_HOST }}/job/DeploySinai/buildWithParameters?GIT_BRANCH=${{ steps.extract_tag.outputs.versionTag }}&cause=GitHub+Action+Build+with+tag&DEPLOY_HOST=s-w-sinaimanuscripts01.library.ucla.edu&token=${{ secrets.JENKINS_AUTH_TOKEN }}'
curl: 'https://${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_PASSWORD }}@${{ secrets.JENKINS_HOST }}/job/DeploySinai/buildWithParameters?GIT_BRANCH=${VERSION_TAG}&cause=GitHub+Action+Build+with+tag&DEPLOY_HOST=s-w-sinaimanuscripts01.library.ucla.edu&token=${{ secrets.JENKINS_AUTH_TOKEN }}'

0 comments on commit f8943a6

Please sign in to comment.