Skip to content

Commit

Permalink
Update GitHub Actions Names (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
LanikSJ committed Jul 15, 2024
1 parent 5437d0a commit 72c2509
Show file tree
Hide file tree
Showing 5 changed files with 97 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-approve-pr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: auto-approve-prs
name: Auto Approve PRs

on:
pull_request_target:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
with:
source: ./
destination: ./_site
- name: Upload artifact
- name: Upload Artifact
uses: actions/upload-pages-artifact@v3

# Deployment job
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/lock-threads.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Lock Threads

on:
push:
paths:
- .github/workflows/lock-threads.yml
branches-ignore:
- dependabot/**
schedule:
# Once every day at 1am UTC
- cron: "0 1 * * *"
issue_comment:

permissions:
issues: write
pull-requests: write

concurrency:
group: lock-threads
cancel-in-progress: ${{ github.event_name != 'issue_comment' }}

jobs:
lock-threads:
runs-on: ubuntu-latest
steps:
- name: Lock Outdated Threads
uses: dessant/lock-threads@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
process-only: 'issues, prs'
issue-inactive-days: 30
add-issue-labels: outdated
pr-inactive-days: 30
add-pr-labels: outdated
39 changes: 39 additions & 0 deletions .github/workflows/stale-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Manage Stale Issues

on:
push:
paths:
- .github/workflows/stale-issues.yml
branches-ignore:
- dependabot/**
schedule:
# Once every day at midnight UTC
- cron: "0 0 * * *"
issue_comment:

permissions:
issues: write
pull-requests: write

concurrency:
group: stale-issues
cancel-in-progress: ${{ github.event_name != 'issue_comment' }}

jobs:
stale:
runs-on: ubuntu-latest
steps:
- name: Mark/Close Stale Issues and Pull Requests
uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 21
days-before-close: 7
stale-issue-message: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs.
stale-pr-message: >
This pull request has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs.
exempt-issue-labels: "help wanted,in progress"
exempt-pr-labels: "help wanted,in progress"
22 changes: 22 additions & 0 deletions .github/workflows/update-license.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Update License

on:
schedule:
- cron: '0 10 1 1 *' # 10:00 AM on January 1

jobs:
update-license-year:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: FantasticFiasco/action-update-license-year@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commitAuthorEmail: [email protected]
- name: Merge pull request
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh pr merge --squash --delete-branch

0 comments on commit 72c2509

Please sign in to comment.