-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from ImDevinC/autotag
Testing new workflows
- Loading branch information
Showing
7 changed files
with
105 additions
and
33 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: Bump SemVer Tags | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
check-pr: | ||
uses: ./.github/workflows/shared-bump-semver-tags.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: Validate release info | ||
|
||
on: | ||
pull_request: | ||
types: [labeled, unlabeled, opened, edited, synchronize, ready_for_review] | ||
|
||
jobs: | ||
check-pr: | ||
uses: ./.github/workflows/shared-validate-semver-tags.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Bump SemVer Tags | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
include-v-prefix: | ||
description: "Include V prefix on published version" | ||
default: true | ||
required: false | ||
type: boolean | ||
|
||
jobs: | ||
bump-tag-version: | ||
name: Bump and tag version | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version: ${{ steps.bump.outputs.version }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Validate PR metadata | ||
uses: jefflinse/pr-semver-bump@v1.6.0 | ||
id: bump | ||
with: | ||
mode: bump | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
minor-label: minor | ||
major-label: major | ||
patch-label: patch | ||
with-v: ${{ inputs.include-v-prefix }} | ||
update-major-version: | ||
name: Update major version | ||
needs: | ||
- bump-tag-version | ||
runs-on: ubuntu-latest | ||
if: needs.bump-tag-version.outputs.version != '' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Parse major version | ||
id: parse | ||
run: | | ||
VERSION=${{ needs.bump-tag-version.outputs.version }} | ||
VERSION="${VERSION#[vV]}" | ||
MAJOR_VERSION="${VERSION%%\.*}" | ||
echo ::set-output name=major-version::${MAJOR_VERSION} | ||
- name: Republish major version | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "$GITHUB_ACTOR@users.noreply.github.com" | ||
git tag -fa v${{ steps.parse.outputs.major-version }} -m "Update v${{ steps.parse.outputs.major-version }} tag" | ||
git push origin v${{ steps.parse.outputs.major-version }} --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: Release Chart | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
permissions: | ||
contents: write | ||
uses: imdevinc/imdevinc/.github/workflows/chart-release.yaml@v1 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Validate PR metadata | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
check-pr: | ||
name: Validate release label and notes | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Validate PR metadata | ||
uses: jefflinse/pr-semver-bump@v1.6.0 | ||
with: | ||
mode: validate | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
minor-label: minor | ||
major-label: major | ||
patch-label: patch |