Skip to content

Commit

Permalink
ci: update github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
beholdenkey committed Sep 13, 2024
1 parent 7f70415 commit 6ddc686
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 2 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/label-sync.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "Label Sync"

on:
workflow_dispatch:
push:
branches: ["main"]
paths: [".github/labels.yaml"]
schedule:
- cron: "0 0 * * *"

permissions:
issues: write
contents: read

jobs:
label-sync:
name: Label Sync
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
sparse-checkout: .github/labels.yaml

- name: Sync Labels
uses: EndBug/label-sync@v2
with:
request-token: ${{ secrets.GITHUB_TOKEN }}
config-file: .github/labels.yaml
delete-other-labels: true
21 changes: 21 additions & 0 deletions .github/workflows/labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "Labeler"

on:
workflow_dispatch:
pull_request_target:
branches: ["main"]

jobs:
labeler:
name: Labeler
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Labeler
uses: actions/labeler@v5
with:
configuration-path: .github/labeler.yaml
4 changes: 2 additions & 2 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- main

env:
TERRAFORM_DOCS_VERSION: v0.17.0
TFLINT_VERSION: v0.50.0
TERRAFORM_DOCS_VERSION: v0.18.0
TFLINT_VERSION: v0.53.0

jobs:
collectInputs:
Expand Down

0 comments on commit 6ddc686

Please sign in to comment.