You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2022/03/30 14:11:47 UTC
[shardingsphere] branch master updated: Add : add if condition for issue schedule (#16504)
This is an automated email from the ASF dual-hosted git repository.
zhonghongsheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 4d57c7b Add : add if condition for issue schedule (#16504)
4d57c7b is described below
commit 4d57c7baf33cae8363a58e492acc837d04e9789b
Author: 孙念君 Sun Nianjun <su...@sphere-ex.com>
AuthorDate: Wed Mar 30 22:10:33 2022 +0800
Add : add if condition for issue schedule (#16504)
---
.github/workflows/issue.yml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/issue.yml b/.github/workflows/issue.yml
index d3c9f04..e751961 100644
--- a/.github/workflows/issue.yml
+++ b/.github/workflows/issue.yml
@@ -28,7 +28,7 @@ on:
jobs:
comment-action:
runs-on: ubuntu-latest
- if: ${{ github.event_name == 'issue_comment' }}
+ if: ${{ github.repository == 'apache/shardingsphere' && github.event_name == 'issue_comment' }}
steps:
- name: Print Issue Comment
run: |
@@ -43,7 +43,7 @@ jobs:
event_type: rerun-ci
remove-inactive:
runs-on: ubuntu-latest
- if: ${{ github.event_name == 'issues' && github.event.action == 'reopened' }}
+ if: ${{ github.repository == 'apache/shardingsphere' && github.event_name == 'issues' && github.event.action == 'reopened' }}
steps:
- name: Remove "status:inactive" label
if: ${{ contains( github.event.issue.labels.*.name , format('status{0} inactive', ':') ) }}
@@ -56,7 +56,7 @@ jobs:
check-inactive-issue:
runs-on: ubuntu-latest
concurrency: check-inactive # singleton-run-stage
- if: ${{ github.event_name == 'schedule' }}
+ if: ${{ github.repository == 'apache/shardingsphere' && github.event_name == 'schedule' }}
steps:
- name: check-inactive # add `status: inactive` label
uses: actions-cool/issues-helper@v2.2.1
@@ -74,7 +74,7 @@ jobs:
concurrency: # singleton-run-stage
group: close-issue
cancel-in-progress: true
- if: ${{ github.event_name == 'schedule' || ( github.event_name == 'issues' && github.event.action == 'labeled' ) }}
+ if: ${{ github.repository == 'apache/shardingsphere' && github.event_name == 'schedule' || ( github.repository == 'apache/shardingsphere' && github.event_name == 'issues' && github.event.action == 'labeled' ) }}
steps:
- name: Close Issue # close issues with `labels`
uses: actions-cool/issues-helper@v2.2.1