Skip to content

Commit

Permalink
Update Workflows
Browse files Browse the repository at this point in the history
Discord
- Separate prereleases and releases for Discord Webhooks
Build
- Updated workflow to only run on publsihed release
Stale
- Converted to use .github reusable workflow
Wiki Change
- Corrected action url to but under oznu instead of homebridge as repo is under oznu
  • Loading branch information
donavanbecker committed Dec 29, 2023
1 parent a84f452 commit aaa20dd
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 17 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/discord-webhooks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Discord Webhooks

# Controls when the workflow will run
on:
release:
types: [released, prereleased]

jobs:
github-releases-to-discord:
uses: homebridge/.github/.github/workflows/discord-webhooks.yml@latest
with:
footer_title: "Homebridge Docker"
secrets:
DISCORD_WEBHOOK_URL_LATEST: ${{ secrets.DISCORD_WEBHOOK_URL_LATEST }}
DISCORD_WEBHOOK_URL_BETA: ${{ secrets.DISCORD_WEBHOOK_URL_LATEST }}
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: "Build"
name: Build and Push Docker Images

on:
push
release:
types: [published]

jobs:
# build all the image variants
Expand Down
20 changes: 6 additions & 14 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
name: 'Stale Bot'
name: Stale workflow

on:
workflow_dispatch:
schedule:
- cron: '30 1 * * *'
workflow_dispatch:

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-label: stale
exempt-issue-labels: pinned,security
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. Thank you for your contributions.'
days-before-issue-stale: 30
days-before-issue-close: 5
days-before-pr-close: -1
days-before-pr-stale: -1
uses: homebridge/.github/.github/workflows/stale.yml@latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/wiki-change-notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
notify:
runs-on: ubuntu-latest
steps:
- uses: 'homebridge/gh-wiki-edit-discord-notification@main'
- uses: 'oznu/gh-wiki-edit-discord-notification@main'
with:
discord-webhook-url: ${{ secrets.DISCORD_WEBHOOK_WIKI_EDIT }}
ignore-collaborators: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
test-volume
.DS_Store

0 comments on commit aaa20dd

Please sign in to comment.