diff --git a/.github/workflows/update_pipeline_lib_branch.yml b/.github/workflows/update_pipeline_lib_branch.yml new file mode 100644 index 000000000..acc901e19 --- /dev/null +++ b/.github/workflows/update_pipeline_lib_branch.yml @@ -0,0 +1,21 @@ +name: Set Pipeline Library Branch +# This workflow is triggered on pushes to the master branch of the repository. +on: + push: + +jobs: + update_pipeline_lib_branch: + name: Update Pipeline Library Branch + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + ref: ${{ github.head_ref }} + - uses: daos-stack/update-pipeline-lib-action@v1 + - uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: Update Pipeline library branch + commit_options: '--signoff' + id: update_pipeline_lib_branch + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/Jenkinsfile b/Jenkinsfile index 24bb97969..6fd1ebca5 100755 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,7 +16,7 @@ // Then a second PR submitted to comment out the @Library line, and when it // is landed, both PR branches can be deleted. -// @Library(value="pipeline-lib@my_pr_branch") _ +@Library(value="pipeline-lib@bmurrell/pipeline-lib-branch-action") _ // The docker agent setup may need to know the // UID that the build agent is running under.