Removing workflow_call from update-changelog and bump-version action (#58181)
This commit is contained in:
@@ -5,17 +5,6 @@ on:
|
|||||||
version:
|
version:
|
||||||
description: 'Needs to match, exactly, the name of a milestone. The version to be released please respect: major.minor.patch or major.minor.patch-beta<number> format. example: 7.4.3 or 7.4.3-beta1'
|
description: 'Needs to match, exactly, the name of a milestone. The version to be released please respect: major.minor.patch or major.minor.patch-beta<number> format. example: 7.4.3 or 7.4.3-beta1'
|
||||||
required: true
|
required: true
|
||||||
workflow_call:
|
|
||||||
inputs:
|
|
||||||
version_call:
|
|
||||||
description: 'Needs to match, exactly, the name of a milestone. The version to be released please respect: major.minor.patch or major.minor.patch-beta<number> format. example: 7.4.3 or 7.4.3-beta1'
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
secrets:
|
|
||||||
token:
|
|
||||||
required: true
|
|
||||||
metricsWriteAPIKey:
|
|
||||||
required: true
|
|
||||||
env:
|
env:
|
||||||
YARN_ENABLE_IMMUTABLE_INSTALLS: false
|
YARN_ENABLE_IMMUTABLE_INSTALLS: false
|
||||||
jobs:
|
jobs:
|
||||||
@@ -79,16 +68,8 @@ jobs:
|
|||||||
node-version: '16'
|
node-version: '16'
|
||||||
- name: Install Actions
|
- name: Install Actions
|
||||||
run: npm install --production --prefix ./actions
|
run: npm install --production --prefix ./actions
|
||||||
- name: Run bump version (manually invoked)
|
- name: Run bump version (manually invoked)
|
||||||
if: ${{ github.event.inputs.version != '' }}
|
|
||||||
uses: ./actions/bump-version
|
uses: ./actions/bump-version
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GH_BOT_ACCESS_TOKEN }}
|
token: ${{ secrets.GH_BOT_ACCESS_TOKEN }}
|
||||||
metricsWriteAPIKey: ${{ secrets.GRAFANA_MISC_STATS_API_KEY }}
|
metricsWriteAPIKey: ${{ secrets.GRAFANA_MISC_STATS_API_KEY }}
|
||||||
- name: Run bump version (workflow invoked)
|
|
||||||
if: ${{ inputs.version_call != '' }}
|
|
||||||
uses: ./actions/bump-version
|
|
||||||
with:
|
|
||||||
version_call: ${{ inputs.version_call }}
|
|
||||||
token: ${{ secrets.token }}
|
|
||||||
metricsWriteAPIKey: ${{ secrets.metricsWriteAPIKey }}
|
|
||||||
|
|||||||
@@ -5,17 +5,6 @@ on:
|
|||||||
version:
|
version:
|
||||||
required: true
|
required: true
|
||||||
description: 'Needs to match, exactly, the name of a milestone. The version to be released please respect: major.minor.patch or major.minor.patch-beta<number> format. example: 7.4.3 or 7.4.3-beta1'
|
description: 'Needs to match, exactly, the name of a milestone. The version to be released please respect: major.minor.patch or major.minor.patch-beta<number> format. example: 7.4.3 or 7.4.3-beta1'
|
||||||
workflow_call:
|
|
||||||
inputs:
|
|
||||||
version_call:
|
|
||||||
description: 'Needs to match, exactly, the name of a milestone. The version to be released please respect: major.minor.patch or major.minor.patch-beta<number> format. example: 7.4.3 or 7.4.3-beta1'
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
secrets:
|
|
||||||
token:
|
|
||||||
required: true
|
|
||||||
metricsWriteAPIKey:
|
|
||||||
required: true
|
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
main:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -28,16 +17,8 @@ jobs:
|
|||||||
ref: main
|
ref: main
|
||||||
- name: Install Actions
|
- name: Install Actions
|
||||||
run: npm install --production --prefix ./actions
|
run: npm install --production --prefix ./actions
|
||||||
- name: Run update changelog (manually invoked)
|
- name: Run update changelog (manually invoked)
|
||||||
if: ${{ github.event.inputs.version != '' }}
|
|
||||||
uses: ./actions/update-changelog
|
uses: ./actions/update-changelog
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GH_BOT_ACCESS_TOKEN }}
|
token: ${{ secrets.GH_BOT_ACCESS_TOKEN }}
|
||||||
metricsWriteAPIKey: ${{ secrets.GRAFANA_MISC_STATS_API_KEY }}
|
metricsWriteAPIKey: ${{ secrets.GRAFANA_MISC_STATS_API_KEY }}
|
||||||
- name: Run update changelog (workflow invoked)
|
|
||||||
if: ${{ inputs.version != '' }}
|
|
||||||
uses: ./actions/update-changelog
|
|
||||||
with:
|
|
||||||
version_call: ${{ inputs.version }}
|
|
||||||
token: ${{ secrets.token }}
|
|
||||||
metricsWriteAPIKey: ${{ secrets.metricsWriteAPIKey }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user