Skip to content

Add pipeline-lib branch update action #156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/update_pipeline_lib_branch.yml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down