Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
donavanbecker committed Feb 3, 2024
1 parent 6df0a94 commit adcac6d
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 43 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/beta-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Node-CI Beta
on:
push:
branches: [beta-*.*.*, beta]
release:
types: [prereleased]
workflow_dispatch:

jobs:
Expand All @@ -29,3 +31,15 @@ jobs:
pre_id: 'beta'
secrets:
npm_auth_token: ${{ secrets.npm_token }}

github-releases-to-discord:
needs: publish

if: ${{ github.repository == 'donavanbecker/homebridge-resideo' && github.event.release.prerelease == true }}

uses: OpenWonderLabs/.github/.github/workflows/discord-webhooks.yml@latest
with:
footer_title: "Resideo"
secrets:
DISCORD_WEBHOOK_URL_LATEST: ${{ secrets.DISCORD_WEBHOOK_URL_LATEST }}
DISCORD_WEBHOOK_URL_BETA: ${{ secrets.DISCORD_WEBHOOK_URL_BETA }}
14 changes: 6 additions & 8 deletions .github/workflows/changerelease.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
name: Changelog to Release

on:
workflow_dispatch:
push:
paths: [CHANGELOG.md]
branches: [latest]
release:
types: [published]

jobs:
changerelease:
uses: donavanbecker/.github/.github/workflows/changerelease.yml@latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
changerelease:
uses: donavanbecker/.github/.github/workflows/changerelease.yml@latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
10 changes: 3 additions & 7 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@ name: AutoDependabot

on:
pull_request:
branches:
- beta
- latest
branches: [ beta, latest ]
pull_request_target:
branches:
- beta
- latest
branches: [ beta, latest ]

jobs:
label:
dependabot:
uses: donavanbecker/.github/.github/workflows/dependabot.yml@latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
17 changes: 0 additions & 17 deletions .github/workflows/discord-webhooks.yml

This file was deleted.

9 changes: 1 addition & 8 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
# This workflow will triage pull requests and apply a label based on the
# paths that are modified in the pull request.
#
# To use this workflow, you will need to set up a .github/labeler.yml
# file with configuration. For more information, see:
# https://github.com/actions/labeler/blob/main/README.md

name: Labeler

on: [pull_request]

jobs:
label:
labeler:
uses: donavanbecker/.github/.github/workflows/labeler.yml@latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
8 changes: 5 additions & 3 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ name: Release Drafter

on:
push:
branches:
- latest
branches: [latest]
pull_request: # required for autolabeler
types: [opened, reopened, synchronize]
workflow_dispatch:

jobs:
release-drafter:
uses: donavanbecker/.github/.github/workflows/release-drafter.yml@latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,15 @@ jobs:
uses: donavanbecker/.github/.github/workflows/npm-publish.yml@latest
secrets:
npm_auth_token: ${{ secrets.npm_token }}

github-releases-to-discord:
needs: publish

if: ${{ github.repository == 'donavanbecker/homebridge-august' }}

uses: donavanbecker/.github/.github/workflows/discord-webhooks.yml@latest
with:
footer_title: "Resideo"
secrets:
DISCORD_WEBHOOK_URL_LATEST: ${{ secrets.DISCORD_WEBHOOK_URL_LATEST }}
DISCORD_WEBHOOK_URL_BETA: ${{ secrets.DISCORD_WEBHOOK_URL_BETA }}

0 comments on commit adcac6d

Please sign in to comment.