6 |
|
|
7 |
jobs: |
jobs: |
8 |
changelog: |
changelog: |
9 |
if: github.repository_owner == 'Upvision' |
if: github.repository_owner == 'onesoft-sudo' |
10 |
runs-on: ubuntu-latest |
runs-on: ubuntu-latest |
11 |
|
|
12 |
steps: |
steps: |
13 |
- uses: actions/checkout@v2 |
- uses: actions/checkout@v3 |
14 |
|
|
15 |
- name: Conventional Changelog Action |
- name: Conventional Changelog Action |
16 |
id: changelog |
id: changelog |
17 |
uses: TriPSs/[email protected] |
uses: TriPSs/[email protected] |
18 |
with: |
with: |
19 |
github-token: ${{ secrets.CHANGELOG_RELEASE }} |
github-token: ${{ secrets.AUTO_RELEASE_TOKEN }} |
20 |
version-file: './package.json,./package-lock.json' |
version-file: './package.json,./package-lock.json' |
21 |
|
|
22 |
- name: Create Release |
- name: Create Release |
23 |
uses: actions/create-release@v1 |
uses: actions/create-release@v1 |
24 |
if: ${{ steps.changelog.outputs.skipped == 'false' }} |
if: ${{ steps.changelog.outputs.skipped == 'false' }} |
25 |
env: |
env: |
26 |
GITHUB_TOKEN: ${{ secrets.CHANGELOG_RELEASE }} |
GITHUB_TOKEN: ${{ secrets.AUTO_RELEASE_TOKEN }} |
27 |
with: |
with: |
28 |
tag_name: ${{ steps.changelog.outputs.tag }} |
tag_name: ${{ steps.changelog.outputs.tag }} |
29 |
release_name: ${{ steps.changelog.outputs.tag }} |
release_name: ${{ steps.changelog.outputs.tag }} |