Skip to content

Commit

Permalink
Merge pull request #12 from discoverygarden/add-semver
Browse files Browse the repository at this point in the history
IT-496: Updating with auto-semver workflow
  • Loading branch information
nchiasson-dgi authored Oct 4, 2024
2 parents 494ec54 + 9d94e52 commit 67c6738
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/enforce-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Enforce Labeling
on:
pull_request_target:
types: [opened, synchronize, reopened, labeled, unlabeled]
branches:
- main
workflow_dispatch:

jobs:
check_labels:
runs-on: ubuntu-latest
steps:
- name: Check Pull Request Labels
uses: discoverygarden/enforce-label@v1
with:
required_labels: major,minor,patch,no-update
17 changes: 17 additions & 0 deletions .github/workflows/semver.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Auto Semver
on:
pull_request_target:
types: closed
branches:
- main
jobs:
update:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Run Auto Semver
uses: discoverygarden/auto-semver@v1
- name: Update Major Tag
uses: discoverygarden/action-major-tag@v1
with:
prefix: 'v'

0 comments on commit 67c6738

Please sign in to comment.