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 c5ae4da commit 92c7dbf
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
comment:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Test Comment
run: gh pr comment ${{github.event.number}} --body "Hi from GitHub CLI" --repo ${{github.repository}}
env:
GH_TOKEN: ${{ github.token }}
name: Add preview url comment
uses: ./.github/workflows/pr_comment.yml
with:
config-path: A preview url will be shown here when the deployment finished.

build_lib:
name: Build
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/pr_comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Comment

on:
workflow_call:
inputs:
body:
required: true
type: string

jobs:
comment:
name: PR

steps:
- name: Add or update comment
run: |
gh pr comment ${{github.event.number}} \
--repo ${{github.repository}} \
--body ${{ inputs.body }} \
--edit-last
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit 92c7dbf

Please sign in to comment.