Skip to content

Commit

Permalink
Clean up workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
dnicolson committed Feb 4, 2024
1 parent 6174d2d commit 2378ffb
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 29 deletions.
16 changes: 8 additions & 8 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

version: 2
updates:
- package-ecosystem: 'npm' # See documentation for possible values
directory: '/' # Location of package manifests
target-branch: 'beta-*.*.*'
- package-ecosystem: npm # See documentation for possible values
directory: / # Location of package manifests
target-branch: beta-*.*.*
schedule:
interval: 'daily'
- package-ecosystem: 'github-actions' # See documentation for possible values
directory: '/' # Location of package manifests
target-branch: 'beta-*.*.*'
interval: daily
- package-ecosystem: github-actions # See documentation for possible values
directory: / # Location of package manifests
target-branch: beta-*.*.*
schedule:
interval: 'daily'
interval: daily
18 changes: 9 additions & 9 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,36 @@ branding:
- changed-files:
- any-glob-to-any-file: branding/**

# Add 'docs' label to any change to .md files within the entire repository
# Add 'docs' label to any change to .md files within the entire repository
docs:
- changed-files:
- any-glob-to-any-file: '**/*.md'

# Add 'enhancement' label to any change to src files within the source dir EXCEPT for the docs sub-folder
enhancement:
- changed-files:
- any-glob-to-any-file: 'src/**/*'
- any-glob-to-any-file: 'config.schema.json'
- any-glob-to-any-file: src/**/*
- any-glob-to-any-file: config.schema.json

# Add 'dependencies' label to any change to src files within the source dir EXCEPT for the docs sub-folder
dependencies:
- changed-files:
- any-glob-to-any-file: 'package.json'
- any-glob-to-any-file: 'package-lock.json'
- any-glob-to-any-file: package.json
- any-glob-to-any-file: package-lock.json

# Add 'beta' label to any PR that is opened against the `beta` branch
beta:
- base-branch: 'beta*'
- base-branch: beta*

# Add 'alpha' label to any PR that is opened against the `alpha` branch
alpha:
- base-branch: 'alpha*'
- base-branch: alpha*

# Add 'latest' label to any PR that is opened against the `latest` branch
latest:
- base-branch: 'latest'
- base-branch: latest

# Add 'workflow' to any changes within 'workflow' folder or any subfolders
workflow:
- changed-files:
- any-glob-to-any-file: .github/**
- any-glob-to-any-file: .github/**
10 changes: 5 additions & 5 deletions .github/workflows/beta-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [beta-*.*.*, beta]
release:
types: [prereleased]
types: prereleased
workflow_dispatch:

jobs:
Expand All @@ -25,10 +25,10 @@ jobs:

uses: OpenWonderLabs/.github/.github/workflows/npm-publish.yml@latest
with:
tag: 'beta'
tag: beta
dynamically_adjust_version: true
npm_version_command: 'pre'
pre_id: 'beta'
npm_version_command: pre
pre_id: beta
secrets:
npm_auth_token: ${{ secrets.npm_token }}

Expand All @@ -39,6 +39,6 @@ jobs:

uses: OpenWonderLabs/.github/.github/workflows/discord-webhooks.yml@latest
with:
footer_title: "SwitchBot"
footer_title: SwitchBot
secrets:
DISCORD_WEBHOOK_URL_BETA: ${{ secrets.DISCORD_WEBHOOK_URL_BETA }}
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Node Build

on:
push:
branches: [latest]
branches: latest
pull_request:
workflow_dispatch:

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/changerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Changelog to Release

on:
release:
types: [published]
types: published

jobs:
changerelease:
uses: OpenWonderLabs/.github/.github/workflows/changerelease.yml@latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
dependabot:
uses: OpenWonderLabs/.github/.github/workflows/dependabot.yml@latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release Drafter

on:
push:
branches: [latest]
branches: latest
pull_request: # required for autolabeler
types: [opened, reopened, synchronize]
workflow_dispatch:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Node Release

on:
release:
types: [published]
types: published

jobs:
build_and_test:
Expand All @@ -28,7 +28,7 @@ jobs:

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

Expand Down

0 comments on commit 2378ffb

Please sign in to comment.