Skip to content

Commit

Permalink
Trigger on pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoriano committed Jul 25, 2024
1 parent b3fd17e commit b1efc49
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/bump-elastic-stack-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@ on:
workflow_dispatch:
schedule:
- cron: '0 1 * * 1-5'
issue_comment:
types: ['created']
pull_request:
paths:
- .github/updatecli.d/*
- .github/workflows/bump-elastic-stack-version.yml

permissions:
contents: read

jobs:
bump-elastic-stack:
if: ${{ github.event_name != 'issue_comment' || (github.event.issue.pull_request && contains(github.event.comment.body, '/test bump-stack')) }}
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -27,12 +28,12 @@ jobs:
uses: updatecli/[email protected] # updatecli v0.80.0

- name: Select diff action
if: ${{ github.event_name == 'issue_comment' }}
if: ${{ github.event_name == 'pull_request' }}
run: |
echo "UPDATECLI_ACTION=diff" >> $GITHUB_ENV
- name: Select apply action
if: ${{ github.event_name != 'issue_comment' }}
if: ${{ github.event_name != 'pull_request' }}
run: |
echo "UPDATECLI_ACTION=apply" >> $GITHUB_ENV
Expand Down

0 comments on commit b1efc49

Please sign in to comment.