Skip to content

Commit

Permalink
Update mirror-porter.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
myifeng authored May 30, 2024
1 parent 83801ce commit c37df3c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/mirror-porter.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Mirror Porter
on:
issues:
types: [opened, reopened]
types: [opened, reopened, edited]
jobs:
mirror-porter-job:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -42,6 +42,7 @@ jobs:
actions: "create-comment,add-labels,close-issue"
labels: ${{ steps.pull-push.outcome }}
issue-number: ${{ github.event.issue.number }}
close-reason: 'completed'
body: |
Hi @${{ github.event.issue.user.login }}
Expand All @@ -56,13 +57,14 @@ jobs:
```
- name: Close issue by failure
uses: actions-cool/issues-helper@v3
if: always() && steps.pull-push.outcome != 'success'
if: always() && steps.pull-push.outcome != 'success' && steps.check-star.outputs.starred != ''
with:
actions: "create-comment,add-labels,close-issue"
labels: ${{ steps.pull-push.outcome }}
issue-number: ${{ github.event.issue.number }}
body: |
Sorry @${{ github.event.issue.user.login }} , it seems to fail here.
Please check if the title of the issue is in `image:tag` format.
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v2
if: always() && steps.pull-push.outcome == 'success'
Expand All @@ -80,5 +82,6 @@ jobs:
labels: "no-starred"
issue-number: ${{ github.event.issue.number }}
body: |
Sorry @${{ github.event.issue.user.login }} , you have not starred this repository!
Please star this repository and then reopen this issue to retry!
Sorry @${{ github.event.issue.user.login }} , you have not starred this repository !
Please `star` this repository and then `reopen` this issue to retry !

0 comments on commit c37df3c

Please sign in to comment.