Skip to content

Commit

Permalink
feat: Update repository
Browse files Browse the repository at this point in the history
  • Loading branch information
amartingarcia committed Aug 7, 2024
1 parent 64a88f0 commit 27331fa
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 17 deletions.
18 changes: 18 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: monthly
open-pull-requests-limit: 10
labels:
- enhancement
- dependency-management
- package-ecosystem: terraform
directory: "/"
schedule:
interval: monthly
open-pull-requests-limit: 10
labels:
- enhancement
- dependency-management
20 changes: 20 additions & 0 deletions .github/workflows/auto-assign.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Auto-assign Issue
on:
issues:
types: [opened]
pull_request:
types: [opened, edited, synchronize, reopened]
jobs:
run:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- name: "auto-assign issue"
uses: pozil/auto-assign-issue@v2
with:
repo-token: ${{ secrets.PAT_GITHUB }}
teams: devops-ia
removePreviousAssignees: true
10 changes: 5 additions & 5 deletions .github/workflows/lock.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
name: 'Lock Threads'
name: "Lock Threads"

on:
schedule:
- cron: '50 1 * * *'
- cron: "50 1 * * *"

jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v4
with:
github-token: ${{ secrets.GH_TOKEN }}
github-token: ${{ secrets.PAT_GITHUB }}
issue-comment: >
I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
issue-inactive-days: '30'
issue-inactive-days: "30"
pr-comment: >
I'm going to lock this pull request because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
pr-inactive-days: '30'
pr-inactive-days: "30"
4 changes: 2 additions & 2 deletions .github/workflows/pr-tittle.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Validate PR title'
name: "Validate PR title"

on:
pull_request_target:
Expand All @@ -16,7 +16,7 @@ jobs:
# https://github.com/amannn/action-semantic-pull-request/releases
- uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PAT_GITHUB }}
with:
# Configure which types are allowed.
# Default: https://github.com/commitizen/conventional-commit-types
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,18 @@ on:
push:
branches:
- main
- master
paths:
- '**/*.tpl'
- '**/*.py'
- '**/*.tf'
- '.github/workflows/release.yml'
- "**/*.tpl"
- "**/*.py"
- "**/*.tf"
- ".github/workflows/release.yml"

jobs:
release:
name: Release
runs-on: ubuntu-latest
# Skip running release workflow on forks
if: github.repository_owner == 'terraform-nexus-modules'
if: github.repository_owner == 'devops-ia'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -34,4 +33,4 @@ jobs:
@semantic-release/[email protected]
[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PAT_GITHUB }}
6 changes: 3 additions & 3 deletions .github/workflows/stale-actions.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: 'Mark or close stale issues and PRs'
name: "Mark or close stale issues and PRs"
on:
schedule:
- cron: '0 0 * * *'
- cron: "0 0 * * *"

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v6
with:
repo-token: ${{ secrets.GH_TOKEN }}
repo-token: ${{ secrets.PAT_GITHUB }}
# Staling issues and PR's
days-before-stale: 30
stale-issue-label: stale
Expand Down

0 comments on commit 27331fa

Please sign in to comment.