Skip to content

Commit e33bbac

Browse files
authored
Merge pull request #123 from DenverCoder1/release-and-stale
2 parents 5ed9f0e + eab42fa commit e33bbac

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Releases
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
changelog:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: conventional Changelog Action
16+
id: changelog
17+
uses: TriPSs/conventional-changelog-action@v3.7.1
18+
with:
19+
github-token: ${{ secrets.CHANGELOG_RELEASE }}
20+
output-file: "false"
21+
22+
- name: create release
23+
uses: actions/create-release@v1
24+
if: ${{ steps.changelog.outputs.skipped == 'false' }}
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.CHANGELOG_RELEASE }}
27+
with:
28+
tag_name: ${{ steps.changelog.outputs.tag }}
29+
release_name: ${{ steps.changelog.outputs.tag }}
30+
body: ${{ steps.changelog.outputs.clean_changelog }}

.github/workflows/stale.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: 'Mark stale issues and pull requests'
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 * * *'
7+
8+
jobs:
9+
stale:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/stale@main
13+
id: stale
14+
with:
15+
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days'
16+
days-before-stale: 30
17+
days-before-close: 5
18+
exempt-issue-labels: 'blocked,must,should,keep'
19+
stale-issue-label: 'no-issue-activity'

0 commit comments

Comments
 (0)