feat: initial version
This commit is contained in:
parent
2f3bbf6258
commit
4cac6d9337
|
|
@ -17,33 +17,32 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
run: git checkout -b release
|
||||||
|
|
||||||
- name: conventional Changelog Action
|
- name: conventional Changelog Action
|
||||||
id: changelog
|
id: changelog
|
||||||
uses: TriPSs/conventional-changelog-action@v3
|
uses: TriPSs/conventional-changelog-action@v3
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
git-branch: 'release'
|
||||||
|
|
||||||
- name: create release
|
- name: create release
|
||||||
uses: actions/create-release@v1
|
run: |
|
||||||
if: ${{ steps.changelog.outputs.skipped == 'false' }}
|
curl -L \
|
||||||
env:
|
-X POST \
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
-H "Accept: application/vnd.github+json" \
|
||||||
with:
|
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}"\
|
||||||
tag_name: ${{ steps.changelog.outputs.tag }}
|
-H "X-GitHub-Api-Version: 2022-11-28" \
|
||||||
release_name: ${{ steps.changelog.outputs.tag }}
|
https://api.github.com/repos/${{ github.repository }}/releases \
|
||||||
body: ${{ steps.changelog.outputs.clean_changelog }}
|
-d '{
|
||||||
|
"tag_name": "${{ steps.changelog.outputs.tag }}",
|
||||||
- name: Create Pull Request
|
"target_commitish":"release",
|
||||||
uses: peter-evans/create-pull-request@v5
|
"name": "${{ steps.changelog.outputs.tag }}",
|
||||||
with:
|
"body": "${{ steps.changelog.outputs.clean_changelog }}",
|
||||||
token: ${{ secrets.PAT }}
|
"draft": false,
|
||||||
commit-message: Automated pull request for release
|
"prerelease": false,
|
||||||
branch: release
|
"generate_release_notes": true
|
||||||
title: Automated pull request for release
|
}'
|
||||||
body: This pull request was automatically generated by GitHub Actions.
|
|
||||||
draft: false
|
|
||||||
delete-branch: true
|
|
||||||
|
|
||||||
build-and-push-image:
|
build-and-push-image:
|
||||||
needs: release
|
needs: release
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue