Skip to content

Commit

Permalink
doc: update readme (#43)
Browse files Browse the repository at this point in the history
* doc(readme): update readme (SKIP-RELEASE)

* fix: change trigger

* fix: trigger from pr message body

* test: echo

* test: echo

* test: echo

* test: echo

* test: echo

* test: echo

* test: echo

* test: echo

* test: echo

* test: echo
  • Loading branch information
jtbonhomme authored Mar 7, 2023
1 parent e2b67b3 commit 5404c2d
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 5 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,21 @@ on:

jobs:
check-commit-message:
name: Check Commit Message
name: Create label from comment
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions-ecosystem/action-regex-match@v2
id: regex-match
with:
text: ${{ github.event.comment.body }}
regex: '^/label\s*(.*?)\s*$'
text: ${{ github.event.pull_request.body }}
regex: '^.*\/label\s(.*)(\s.*)?$'

- name: Dump match
run: |
echo '${{ steps.regex-match.outputs.match }}'
echo '${{ steps.regex-match.outputs.group1 }}'
- uses: actions-ecosystem/action-add-labels@v1
if: ${{ steps.regex-match.outputs.match != '' }}
Expand Down
21 changes: 19 additions & 2 deletions .github/workflows/semantic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,22 @@ jobs:
- name: PR Title Verify
uses: satvik-s/[email protected]
with:
#pattern: '^(fix|feat|chore|doc|style|refactor|perf|revert|test): (?:\w+\b\W*){2,8}$'
pattern: '^((fix|feat|refactor)(\(\w\))?: (\w+\s){2,8}(\[[A-Z]{2,3}-[0-9]*\]))|((revert|chore|doc|style|perf|test)(\(\w\))?: ([\w ()-]+)(\[[A-Z]{2,3}-[0-9]*\])?( \(SKIP-RELEASE\))?)$'
pattern: '^(feat|chore|doc|fix|security|refactor|test|wip):[ ]?.{3,}$'

- name: Check Body
id: check-body
uses: actions-ecosystem/action-regex-match@v2
with:
text: ${{ github.event.pull_request.body }}
regex: '^.*(TEST).*$'

- name: Dump match
run: |
echo '${{ steps.check-body.outputs.match }}'
- name: Comment
if: ${{ steps.check-body.outputs.match == '' }}
uses: thollander/actions-comment-pull-request@v2
with:
message: |
This is a test ! :wave:
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,5 @@ Dummy demonstration http server.
* [X] Fix auto tag (no actual analyse of PRs)
* [X] Fix changelog (fix are uncategorized)
* [X] Create and commit SVG badge in pushed branch
* [X] Automated versioning and fancy changelogs
* [ ] Create pre-releases / drafts by default

0 comments on commit 5404c2d

Please sign in to comment.