Skip to content

Commit

Permalink
Updated workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjackyliang committed Aug 15, 2024
1 parent bd3453a commit 2a7fd68
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/lock-inactive-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ run-name: "Running a scheduled task to lock inactive issues over 30 days"

on:
schedule:
- cron: "0 0 * * *"
- cron: "0 0 * * 0"

permissions:
issues: "write"
Expand All @@ -16,7 +16,7 @@ jobs:
- uses: "dessant/lock-threads@v5"
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
issue-comment: "Due to inactivity, this issue will be locked and marked as resolved. If you have any further questions or inquiries, please feel free to open a new [issue](https://github.com/mrjackyliang/homebridge-adt-pulse/issues/new/choose)."
issue-inactive-days: 30
issue-comment: "Due to inactivity, this issue will be locked and marked as resolved. If you have any further questions or inquiries, please feel free to open a new issue."
issue-inactive-days: "30"
issue-lock-reason: "resolved"
log-output: true
log-output: "true"
39 changes: 39 additions & 0 deletions .github/workflows/sponsor-gated-support.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "Sponsor Gated Support"

run-name: "Running a task to analyze support issues"

on:
issue_comment:
types:
- "created"
- "edited"
issues:
types:
- "opened"
- "closed"

permissions:
issues: "write"

jobs:
check-issues:
runs-on: "ubuntu-latest"
steps:
- name: "Checkout repository"
uses: "actions/checkout@v4"
- name: "Show current workflow directory"
run: "ls -la"
- name: "Check support issues"
uses: "mrjackyliang/sponsor-gated-support@1.0.1"
with:
GITHUB_PERSONAL_ACCESS_TOKEN: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
GITHUB_WORKFLOW_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
ISSUE_LABELS: "${{ vars.ISSUE_LABELS }}"
ISSUE_LIMIT_COMMENTER: "${{ vars.ISSUE_LIMIT_COMMENTER }}"
ISSUE_LOCK_ON_CLOSE: "${{ vars.ISSUE_LOCK_ON_CLOSE }}"
ISSUE_MESSAGE_NOT_SPONSOR: "${{ vars.ISSUE_MESSAGE_NOT_SPONSOR }}"
ISSUE_MESSAGE_WELCOME: "${{ vars.ISSUE_MESSAGE_WELCOME }}"
IS_ORGANIZATION: "${{ vars.IS_ORGANIZATION }}"
SPONSOR_ACTIVE_ONLY: "${{ vars.SPONSOR_ACTIVE_ONLY }}"
SPONSOR_EXEMPT_FILE_LOCATION: "${{ vars.SPONSOR_EXEMPT_FILE_LOCATION }}"
SPONSOR_MINIMUM: "${{ vars.SPONSOR_MINIMUM }}"

0 comments on commit 2a7fd68

Please sign in to comment.