mirror of
https://github.com/garronej/ts-ci.git
synced 2025-11-30 21:43:05 +00:00
update
This commit is contained in:
parent
d33f250503
commit
1c29eebc74
1 changed files with 5 additions and 2 deletions
7
.github/workflows/ci.yaml
vendored
7
.github/workflows/ci.yaml
vendored
|
|
@ -44,6 +44,8 @@ jobs:
|
||||||
owner: ${{github.repository_owner}}
|
owner: ${{github.repository_owner}}
|
||||||
repo: ${{github.event.repository.name}}
|
repo: ${{github.event.repository.name}}
|
||||||
branch: latest
|
branch: latest
|
||||||
|
compare_to_version: '0.0.0'
|
||||||
|
|
||||||
|
|
||||||
- name: Get version on master
|
- name: Get version on master
|
||||||
id: v_master
|
id: v_master
|
||||||
|
|
@ -53,9 +55,10 @@ jobs:
|
||||||
owner: ${{github.repository_owner}}
|
owner: ${{github.repository_owner}}
|
||||||
repo: ${{github.event.repository.name}}
|
repo: ${{github.event.repository.name}}
|
||||||
branch: ${{ github.sha }}
|
branch: ${{ github.sha }}
|
||||||
|
compare_to_version: ${{steps.v_latest.outputs.version}}
|
||||||
|
|
||||||
- name: 'Trigger the ''publish'' workflow'
|
- name: 'Trigger the ''publish'' workflow if newer version'
|
||||||
if: ${{ !!env.PAT && steps.v_latest.outputs.version != steps.v_master.outputs.version && steps.v_master.outputs.version != '0.0.0' }}
|
if: ${{ !!env.PAT && steps.v_master.outputs.compare_result == '1' }}
|
||||||
uses: garronej/github_actions_toolkit@master
|
uses: garronej/github_actions_toolkit@master
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.PAT }}
|
GITHUB_TOKEN: ${{ secrets.PAT }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue