Skip to content

Commit

Permalink
Update workflows, add stale action
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodeIO committed Feb 13, 2025
1 parent 516961c commit 86d3f0e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ jobs:
if: github.repository == 'dcodeIO/long.js'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
with:
ref: main
- uses: dcodeIO/setup-node-nvm@master
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: current
- name: Install dependencies
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Stale
on:
schedule:
- cron: "0 0 * * *"
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
stale-issue-message: "This issue has been automatically marked as stale because it has not had recent activity. It will be closed in one week if no further activity occurs. Thank you for your contributions!"
stale-issue-label: "stale"
stale-pr-message: "This PR has been automatically marked as stale because it has not had recent activity. It will be closed in one week if no further activity occurs. Thank you for your contributions!"
exempt-issue-labels: "bug,enhancement,compatibility"
exempt-pr-labels: "breaking change"
exempt-draft-pr: true
exempt-all-milestones: true
exempt-all-assignees: true
days-before-issue-stale: 30
days-before-pr-stale: 60
days-before-close: 7
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
matrix:
node_version: ["current", "lts_latest"]
steps:
- uses: actions/checkout@v1.0.0
- uses: dcodeIO/setup-node-nvm@master
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
- name: Install dependencies
Expand Down

0 comments on commit 86d3f0e

Please sign in to comment.