Skip to content

Commit

Permalink
Add configurable secret to update-libs
Browse files Browse the repository at this point in the history
  • Loading branch information
ca-scribner authored Sep 9, 2022
1 parent 8b6f0c0 commit 0baec93
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/update-libs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
secrets:
CHARMCRAFT_CREDENTIALS:
required: true
PAT:
required: true
description: "Github PAT that can create pull requests for the repo being bumped. If this is a default GITHUB_TOKEN, the PRs generated will not trigger push/pull_request CI workflows"
workflow_dispatch:
inputs:
charmcraft_channel:
Expand Down Expand Up @@ -99,9 +102,10 @@ jobs:
signoff: false
delete-branch: true
branch: "automated-update-charm-libs${{ steps.compile-inputs.outputs.branch-suffix }}"
token: "${{ secrets.PAT }}"

- name: Print Created Pull Request
if: ${{ steps.create-pull-request.outputs.pull-request-number }}
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"

0 comments on commit 0baec93

Please sign in to comment.