Skip to content

Commit

Permalink
update secrets and trigger on comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kcpevey committed Jan 2, 2024
1 parent d021fcc commit 216df06
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/push_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
name: Push screenshots to conda-store docs

on:
pull_request:
types: [labeled]
issue_comment:
types: [created, edited]
workflow_dispatch:
inputs:
pr_number:
Expand All @@ -32,7 +32,7 @@ jobs:
defaults:
run:
shell: bash -el {0}
if: ${{ github.event.label.name == 'update_screenshots' && github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, 'please update screenshots') || github.event_name == 'workflow_dispatch' }}
steps:
- name: "Checkout the conda-store repository 🛎"
uses: actions/checkout@v4
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
- name: "Create PR on conda-store with updated screenshots"
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.PAT }}
token: ${{ secrets.conda-store-ui-ghaction }}
path: conda-store-repo
commit-message: Update screenshots
committer: GitHub <[email protected]>
Expand Down

0 comments on commit 216df06

Please sign in to comment.