-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: fix github release issues with v2 pipelines (#334)
- Loading branch information
Showing
4 changed files
with
31 additions
and
6 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
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 |
---|---|---|
|
@@ -31,14 +31,26 @@ jobs: | |
with: | ||
node-version: 16 | ||
|
||
- name: Create Github Release | ||
# In order to make a commit, we need to initialize a user. | ||
# You may choose to write something less generic here if you want, it doesn't matter functionality wise. | ||
- name: Initialize mandatory git config | ||
run: | | ||
git config user.name "GitHub actions" | ||
git config user.email [email protected] | ||
- name: Create Github Release & Tag | ||
id: create_release | ||
env: | ||
HUSKY: 0 | ||
GITHUB_TOKEN: ${{ secrets.PAT }} | ||
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{ secrets.PAT }} | ||
run: | | ||
npx conventional-github-releaser -p angular | ||
git for-each-ref refs/tags | ||
./Scripts/find-tag.sh ${{ steps.extract-version.outputs.release_version }} && git tag --delete ${{ steps.extract-version.outputs.release_version }} && git push --delete origin ${{ steps.extract-version.outputs.release_version }} | ||
git tag -a v${{ steps.extract-version.outputs.release_version }} -m "chore: release v${{ steps.extract-version.outputs.release_version }}" | ||
git push origin refs/tags/v${{ steps.extract-version.outputs.release_version }} | ||
git for-each-ref refs/tags | ||
DEBUG=conventional-github-releaser npx conventional-github-releaser -p angular --config github-release.config.js | ||
- name: Create pull request into develop | ||
uses: repo-sync/pull-request@v2 | ||
|
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,7 @@ | ||
#!/bin/bash | ||
|
||
if [ $(git tag -l "$1") ]; then | ||
exit 0 | ||
else | ||
exit 1 | ||
fi |
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,5 @@ | ||
module.exports = { | ||
gitRawCommitsOpts: { | ||
merges: null | ||
} | ||
} |