Skip to content

Commit

Permalink
fix: CI
Browse files Browse the repository at this point in the history
  • Loading branch information
YannicEl committed Aug 4, 2023
1 parent 8335c3a commit 1a46b23
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/actions/pr_comment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,19 @@ on:
inputs:
body:
required: true
type: string
is_file:
type: boolean
default: false
update_comment:
type: boolean
default: true

runs:
using: 'composite'
steps:
- name: Try update comment
if: inputs.update_comment
id: update
continue-on-error: true
shell: bash
Expand All @@ -25,7 +30,7 @@ runs:
GH_TOKEN: ${{ github.token }}

- name: Add new comment
if: steps.update.outcome != 'success'
if: steps.update.outcome != 'success' || !inputs.update_comment
shell: bash
run: |
gh pr comment ${{github.event.number}} \
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
uses: ./.github/actions/pr_comment
with:
body: A preview url will be shown here when the deployment finished.
update_comment: false

build_lib:
name: Build
Expand Down

0 comments on commit 1a46b23

Please sign in to comment.