-
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 #33 from qaldak/feature/github-actions
build: change semantic release behaviour
- Loading branch information
Showing
2 changed files
with
11 additions
and
41 deletions.
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 |
---|---|---|
|
@@ -13,6 +13,7 @@ jobs: | |
target_workflow: ./.github/workflows/python-tests.yml | ||
|
||
release: | ||
if: ${{ ! startsWith(github.event.head_commit.message, 'release' ) }} | ||
needs: quality | ||
runs-on: ubuntu-latest | ||
concurrency: release | ||
|
@@ -21,42 +22,6 @@ jobs: | |
contents: write | ||
|
||
steps: | ||
- name: Regex Match | ||
uses: actions-ecosystem/[email protected] | ||
id: regex | ||
with: | ||
text: ${{ github.event.head_commit.message }} | ||
regex: '/[0-9]+\.[0-9]+\.[0-9]+/.*' | ||
|
||
- name: Deploy | ||
if: steps.regex.outputs.matched == 'true' | ||
run: | | ||
echo "Foobar!" | ||
- name: Not triggered by new release | ||
if: ${{ ! startsWith(github.event.head_commit.message, '/^[0-9]+\.[0-9]+\.[0-9]+/' ) }} | ||
run: | | ||
echo "${{ github.event.head_commit.message }}" | ||
echo "Bar" | ||
- name: Triggered by new release | ||
if: ${{ startsWith(github.event.head_commit.message, '/^[0-9]+\.[0-9]+\.[0-9]+/' ) }} | ||
run: | | ||
echo "${{ github.event.head_commit.message }}" | ||
echo "Foo" | ||
- name: Check Tag | ||
id: check-tag | ||
run: | | ||
if [[ "${{ github.event.head_commit.message }}" =~ /[0-9]+\.[0-9]+\.[0-9]+/ ]]; then | ||
echo "::set-output name=match::true" | ||
fi | ||
- name: Build | ||
if: steps.check-tag.outputs.match == 'true' | ||
run: | | ||
echo "Tag is a match" | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
|
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