mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Combine actions
This commit is contained in:
18
.github/workflows/dev-build.yml
vendored
18
.github/workflows/dev-build.yml
vendored
@@ -40,25 +40,19 @@ jobs:
|
||||
steps:
|
||||
- run: echo ${{ needs.create-dev-hash.outputs.dev-hash }}
|
||||
|
||||
get-pr:
|
||||
comment-on-pr:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [create-dev-hash, release-ionic]
|
||||
continue-on-error: true
|
||||
outputs:
|
||||
pr-number: ${{ steps.PR.outputs.number }}
|
||||
steps:
|
||||
- uses: 8BitJonny/gh-get-current-pr@2.2.0
|
||||
id: PR
|
||||
|
||||
- run: echo "Your PR number is ${{ steps.PR.outputs.number }} and its JSON is ${{ steps.PR.outputs.pr }}"
|
||||
|
||||
leave-comment:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [create-dev-hash, release-ionic, get-pr]
|
||||
continue-on-error: true
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- uses: 8BitJonny/gh-get-current-pr@2.2.0
|
||||
id: PR
|
||||
|
||||
- name: Comment on PR
|
||||
uses: thollander/actions-comment-pull-request@v2
|
||||
with:
|
||||
@@ -68,6 +62,6 @@ jobs:
|
||||
${{ needs.create-dev-hash.outputs.dev-hash }}
|
||||
```
|
||||
)_
|
||||
pr_number: ${{ needs.get-pr.outputs.pr-number }}
|
||||
pr_number: ${{ steps.PR.outputs.number }}
|
||||
comment_tag: execution
|
||||
mode: recreate
|
||||
|
||||
Reference in New Issue
Block a user