Skip to content

Commit

Permalink
Merge branch 'dev' into pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
  • Loading branch information
5ouma authored Mar 12, 2024
2 parents f7a378d + fde3bd5 commit a0cd6a9
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 9 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/branch-delete.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: ❌ Branch Delete

on:
pull_request:
types:
- closed

permissions:
contents: write

jobs:
Delete-Branch:
runs-on: Ubuntu-Latest

steps:
- name: ❌ Delete Branch
if: ${{ github.head_ref != 'dev'}}
uses: SvanBoxel/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 7 additions & 3 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
name: 🥽 Pull Request Check

on:
- pull_request_target
pull_request:
types:
- opened
- reopened
- edited

jobs:
Labeler:
Expand All @@ -19,5 +23,5 @@ jobs:

steps:
- name: 🚫 Base Branch is wrong
if: ${{ github.head_ref != 'dev' && github.base_ref == 'main' }}
run: echo "Base branch should be \`main\`." && return 1
if: ${{ github.base_ref == 'main' && github.head_ref != 'dev' }}
run: echo "Base branch should be \`dev\`." && exit 1
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: 🚀 Release

on:
push:
branches:
- "main"

permissions:
contents: write
pull-requests: write

jobs:
Release:
runs-on: Ubuntu-Latest

steps:
- name: 🚚 Checkout Repository
uses: actions/checkout@v4

- name: 🏷️ Create a New Tag
id: tagpr
uses: Songmu/tagpr@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 0 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,3 @@ repos:
hooks:
- id: shellcheck
args: ["-e", "SC1071,SC1072,SC1073,SC1090,SC1091,SC2015,SC2148,SC2154"]

- repo: https://github.com/nozaq/pre-commit-deno
rev: 0.1.0
hooks:
- id: deno-fmt
- id: deno-lint
8 changes: 8 additions & 0 deletions .tagpr
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[tagpr]
releaseBranch = "main"
versionFile = "-"
vPrefix = true
changelog = false
release = true
majroLabels = "Type: Breaking Change"
minorLabels = "Type: Feature"

0 comments on commit a0cd6a9

Please sign in to comment.