From f0107262fcaba925e33596a0a032d748abfc5f47 Mon Sep 17 00:00:00 2001 From: "Brian J. Murrell" Date: Tue, 21 Jul 2020 17:28:06 -0400 Subject: [PATCH 1/2] Add Pipeline Library branch update action Signed-off-by: Brian J. Murrell --- .../workflows/update_pipeline_lib_branch.yml | 21 +++++++++++++++++++ Jenkinsfile | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/update_pipeline_lib_branch.yml diff --git a/.github/workflows/update_pipeline_lib_branch.yml b/.github/workflows/update_pipeline_lib_branch.yml new file mode 100644 index 0000000..acc901e --- /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 5a9bfec..866d7fe 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="trusted-pipeline-lib@my_pr_branch") _ pipeline { agent { label 'lightweight' } From 1155bd6fdf6218abf16828b144b726a9d74982fa Mon Sep 17 00:00:00 2001 From: brianjmurrell Date: Tue, 21 Jul 2020 21:34:04 +0000 Subject: [PATCH 2/2] Update Pipeline library branch Signed-off-by: GitHub Actions --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 866d7fe..cb229dd 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="trusted-pipeline-lib@my_pr_branch") _ +@Library(value="trusted-pipeline-lib@bmurrell/pipeline-lib-branch-action") _ pipeline { agent { label 'lightweight' }