Skip to content

Commit

Permalink
fix: autoupdate and lableler action
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvasandani committed Dec 16, 2023
1 parent 8d06f61 commit a10db5c
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
interval: "daily"
40 changes: 31 additions & 9 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,34 @@
# Add to any change to .txt files within the entire repository. Quotation marks are required for the leading asterisk
# https://github.com/actions/labeler/#match-object

config:
- any:
- changed-files:
- any-glob-to-any-file: [
'.eleventy.config.images.js',
'.eleventy.js',
'.eleventyignore',
'.gitignore',
]

post:
- any:
- changed-files:
- any-glob-to-any-file: ['posts/*/*.md']

image:
- any:
- changed-files:
- any-glob-to-any-file: [
'posts/*/*.jpg',
'posts/*/*.png',
]

format:
- '**/*.njk'
- any:
- changed-files:
- any-glob-to-any-file: ['**/*.njk']

GitHub:
- '.github/*'

config:
- '.eleventy.config.images.js'
- '.eleventy.js'
- '.eleventyignore'
- '.gitignore'
- any:
- changed-files:
- any-glob-to-any-file: ['.github/*']
21 changes: 0 additions & 21 deletions .github/workflows/label.yml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: PR Labeler

on:
- pull_request_target

jobs:
pr-label:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"cSpell.words": [
"eleventy",
"eleventyignore",
"gemdown",
"linkify",
"prebuild",
Expand Down

0 comments on commit a10db5c

Please sign in to comment.