Skip to content

Commit

Permalink
cI: Run on comment only
Browse files Browse the repository at this point in the history
  • Loading branch information
ko3n1g committed May 6, 2024
1 parent bbf3304 commit 4f117b6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,20 @@ env:
DEFAULT_MANIFEST_ARTIFACT_NAME: bumped-manifest

jobs:
pre-flight:
runs-on: ubuntu-22.04
if: >
github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
contains(github.event.comment.body, '/cicd')
steps:
- name: Triggered by comment
shell: bash
run: exit 0

metadata:
runs-on: ubuntu-22.04
needs: pre-flight
outputs:
BUILD_DATE: ${{ steps.date.outputs.BUILD_DATE }}
PUBLISH: ${{ steps.if-publish.outputs.PUBLISH }}
Expand Down

0 comments on commit 4f117b6

Please sign in to comment.