mirror of
https://github.com/garronej/ts-ci.git
synced 2025-11-30 21:43:05 +00:00
Renaming branch develop->main
This commit is contained in:
parent
2129aa79e8
commit
213f1ec91f
4 changed files with 12 additions and 12 deletions
12
.github/workflows/ci.yaml
vendored
12
.github/workflows/ci.yaml
vendored
|
|
@ -2,10 +2,10 @@ name: ci
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- develop
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- develop
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
|
|
@ -71,8 +71,8 @@ jobs:
|
||||||
branch: latest
|
branch: latest
|
||||||
compare_to_version: '0.0.0'
|
compare_to_version: '0.0.0'
|
||||||
|
|
||||||
- name: Get version on develop
|
- name: Get version on main
|
||||||
id: v_develop
|
id: v_main
|
||||||
uses: garronej/github_actions_toolkit@v1.11
|
uses: garronej/github_actions_toolkit@v1.11
|
||||||
with:
|
with:
|
||||||
action_name: get_package_json_version
|
action_name: get_package_json_version
|
||||||
|
|
@ -82,7 +82,7 @@ jobs:
|
||||||
compare_to_version: ${{steps.v_latest.outputs.version || '0.0.0'}}
|
compare_to_version: ${{steps.v_latest.outputs.version || '0.0.0'}}
|
||||||
|
|
||||||
- name: 'Trigger the ''publish'' workflow'
|
- name: 'Trigger the ''publish'' workflow'
|
||||||
if: ${{ !!env.PAT && steps.v_develop.outputs.compare_result == '1' }}
|
if: ${{ !!env.PAT && steps.v_main.outputs.compare_result == '1' }}
|
||||||
uses: garronej/github_actions_toolkit@v1.11
|
uses: garronej/github_actions_toolkit@v1.11
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.PAT }}
|
GITHUB_TOKEN: ${{ secrets.PAT }}
|
||||||
|
|
@ -96,7 +96,7 @@ jobs:
|
||||||
format(
|
format(
|
||||||
'{{"from_version":"{0}","to_version":"{1}","repo":"{2}"}}',
|
'{{"from_version":"{0}","to_version":"{1}","repo":"{2}"}}',
|
||||||
steps.v_latest.outputs.version,
|
steps.v_latest.outputs.version,
|
||||||
steps.v_develop.outputs.version,
|
steps.v_main.outputs.version,
|
||||||
github.event.repository.name
|
github.event.repository.name
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
|
|
|
||||||
6
.github/workflows/publish.yaml
vendored
6
.github/workflows/publish.yaml
vendored
|
|
@ -15,7 +15,7 @@ jobs:
|
||||||
action_name: sync_package_and_package_lock_version
|
action_name: sync_package_and_package_lock_version
|
||||||
owner: ${{github.repository_owner}}
|
owner: ${{github.repository_owner}}
|
||||||
repo: ${{github.event.client_payload.repo}}
|
repo: ${{github.event.client_payload.repo}}
|
||||||
branch: develop
|
branch: main
|
||||||
commit_author_email: ts_ci@github.com
|
commit_author_email: ts_ci@github.com
|
||||||
- name: Update CHANGELOG.md
|
- name: Update CHANGELOG.md
|
||||||
if: ${{ !!github.event.client_payload.from_version }}
|
if: ${{ !!github.event.client_payload.from_version }}
|
||||||
|
|
@ -27,7 +27,7 @@ jobs:
|
||||||
owner: ${{github.repository_owner}}
|
owner: ${{github.repository_owner}}
|
||||||
repo: ${{github.event.client_payload.repo}}
|
repo: ${{github.event.client_payload.repo}}
|
||||||
branch_behind: latest
|
branch_behind: latest
|
||||||
branch_ahead: develop
|
branch_ahead: main
|
||||||
commit_author_email: ts_ci@github.com
|
commit_author_email: ts_ci@github.com
|
||||||
exclude_commit_from_author_names_json: '["ts_ci"]'
|
exclude_commit_from_author_names_json: '["ts_ci"]'
|
||||||
|
|
||||||
|
|
@ -38,7 +38,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: develop
|
ref: main
|
||||||
- name: Remove .github directory, useless on 'latest' branch
|
- name: Remove .github directory, useless on 'latest' branch
|
||||||
run: rm -r .github
|
run: rm -r .github
|
||||||
- name: Remove branch 'latest'
|
- name: Remove branch 'latest'
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ name: template_initialization
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- develop
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
template_initialization:
|
template_initialization:
|
||||||
|
|
@ -64,7 +64,7 @@ jobs:
|
||||||
uses: ad-m/github-push-action@v0.5.0
|
uses: ad-m/github-push-action@v0.5.0
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
|
||||||
branch: develop
|
branch: main
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<i>#{DESC}#</i>
|
<i>#{DESC}#</i>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<img src="https://github.com/garronej/#{REPO_NAME}#/workflows/ci/badge.svg?branch=develop">
|
<img src="https://github.com/garronej/#{REPO_NAME}#/workflows/ci/badge.svg?branch=main">
|
||||||
<img src="https://img.shields.io/bundlephobia/minzip/#{REPO_NAME}#">
|
<img src="https://img.shields.io/bundlephobia/minzip/#{REPO_NAME}#">
|
||||||
<img src="https://img.shields.io/npm/dw/#{REPO_NAME}#">
|
<img src="https://img.shields.io/npm/dw/#{REPO_NAME}#">
|
||||||
<img src="https://img.shields.io/npm/l/#{REPO_NAME}#">
|
<img src="https://img.shields.io/npm/l/#{REPO_NAME}#">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue