mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-05-20 20:24:49 +00:00
updates
This commit is contained in:
+15
-16
@@ -1,21 +1,20 @@
|
||||
name: StaleBOT
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
name: 'Force cleanup'
|
||||
schedule:
|
||||
- cron: "30 14 * * *"
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "30 14 * * *"
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/stale@v3
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
days-before-stale: 7
|
||||
days-before-close: 3
|
||||
stale-issue-message: 'This issue has been marked as stale due to inactivity and will be closed. Comment anything on this issue to prevent it'
|
||||
stale-pr-message: 'This pull request has been marked as stale due to inactivity and will be closed. Comment anything on this PR to prevent it'
|
||||
exempt-issue-labels: 'no-stale'
|
||||
exempt-pr-labels: 'no-stale'
|
||||
stale:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/stale@v3
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
days-before-stale: 7
|
||||
days-before-close: 3
|
||||
stale-issue-message: "This issue has been marked as stale due to inactivity and will be closed. Comment anything on this issue to prevent it"
|
||||
stale-pr-message: "This pull request has been marked as stale due to inactivity and will be closed. Comment anything on this PR to prevent it"
|
||||
exempt-issue-labels: "no-stale"
|
||||
exempt-pr-labels: "no-stale"
|
||||
|
||||
@@ -36,15 +36,10 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Get Modified JSON Files
|
||||
id: modified_files
|
||||
run: |
|
||||
MODIFIED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep '^domains/.*\.json$' | sed 's|.*/||' | tr '\n' ',' | sed 's|,$||')
|
||||
echo "MODIFIED_FILES=${MODIFIED_FILES}" >> $GITHUB_ENV
|
||||
|
||||
- run: npm install
|
||||
|
||||
- run: npm test
|
||||
env:
|
||||
PULL_REQUEST: ${{ github.event_name == 'pull_request' }}
|
||||
EVENT: ${{ github.event_name }}
|
||||
PR_AUTHOR: ${{ github.event.pull_request.user.login }}
|
||||
MODIFIED_FILES: ${{ env.MODIFIED_FILES }}
|
||||
|
||||
Reference in New Issue
Block a user