-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add version bump, auto labeling of pr
ci: change git trigger event to pull_request
- Loading branch information
1 parent
dd745f7
commit af431b2
Showing
5 changed files
with
99 additions
and
1 deletion.
There are no files selected for viewing
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,11 @@ | ||
cicd: | ||
- '.github/workflows/*' | ||
|
||
scripts: | ||
- 'scripts/*' | ||
|
||
test: | ||
- 'test/**' | ||
|
||
documentation: | ||
- '**/*.md' |
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,33 @@ | ||
name: Bump version | ||
on: | ||
push: | ||
branches: | ||
- "**" | ||
# pull_request: | ||
# types: | ||
# - closed | ||
# branches: | ||
# - master | ||
|
||
jobs: | ||
build: | ||
# if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.merge_commit_sha }} | ||
fetch-depth: '0' | ||
|
||
- name: Bump version and push tag | ||
uses: anothrNick/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
INITIAL_VERSION: 0.1.0 | ||
WITH_V: true | ||
PRERELEASE: true | ||
DEFAULT_BUMP: none | ||
PRERELEASE_SUFFIX: alpha | ||
|
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,16 @@ | ||
name: Check version-bump label | ||
on: | ||
pull_request: | ||
branches: | ||
- "main" | ||
pull_request: | ||
types: [opened, labeled, unlabeled, synchronize] | ||
jobs: | ||
require-version-bump-label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: mheap/github-action-required-labels@v5 | ||
with: | ||
mode: exactly | ||
count: 1 | ||
labels: "bump:patch, bump:minor, bump:major, bump:none" |
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,38 @@ | ||
name: Pull Request Labeler | ||
on: | ||
pull_request: | ||
branches: | ||
- "**" | ||
paths: | ||
- ".github/workflows/labeler.yml" | ||
- ".github/labeler.yml" | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
jobs: | ||
auto-label: | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Find Current Pull Request | ||
uses: jwalton/[email protected] | ||
id: findPr | ||
with: | ||
# Can be "open", "closed", or "all". Defaults to "open". | ||
state: open | ||
- run: echo "PR Number is ${PR}" | ||
if: success() && steps.findPr.outputs.number | ||
env: | ||
PR: ${{ steps.findPr.outputs.pr }} | ||
|
||
- name: check pr pr-number | ||
run: echo ${{ github.event.number }} | ||
|
||
- uses: actions/labeler@v4 | ||
with: | ||
dot: true | ||
pr-number: ${{ steps.findPr.outputs.pr }} |
Submodule xCall
updated
from 17555e to b4ec95