Skip to content

Commit

Permalink
Make use of BOT_PAT optional in ack workflow (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Sep 12, 2023
1 parent 6a06755 commit 7828cd4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ on:
pull_request_target:
types: [opened, labeled, unlabeled, synchronize]
workflow_call: # allows reuse of this workflow from other devtools repos

secrets:
BOT_PAT:
required: false
jobs:
ack:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -50,6 +52,10 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Add PR to 'devtools' project
# Workaround for running this step only if BOT_PAT secret is found
env:
BOT_PAT: ${{ secrets.BOT_PAT }}
if: env.BOT_PAT != null
uses: actions/add-to-project@main
with:
project-url: https://github.com/orgs/ansible/projects/86
Expand Down

0 comments on commit 7828cd4

Please sign in to comment.