switch to new Azure release workflows (#103)
This commit is contained in:
Родитель
00bee7372b
Коммит
e7e8b1ad2e
|
@ -1,14 +1,15 @@
|
|||
name: Create release PR
|
||||
name: Release Project
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- CHANGELOG.md
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
release:
|
||||
description: 'Define release version (ex: v1, v2, v3)'
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
release-pr:
|
||||
uses: OliverMKing/javascript-release-workflow/.github/workflows/release-pr.yml@main
|
||||
release:
|
||||
uses: Azure/action-release-workflows/.github/workflows/release_js_project.yaml@81e6a8ed41ced9d131dea884ecae7b8c6dc4f799
|
||||
with:
|
||||
release: ${{ github.event.inputs.release }}
|
||||
changelogPath: ./CHANGELOG.md
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
name: Tag and create release draft
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- releases/*
|
||||
|
||||
jobs:
|
||||
tag-and-release:
|
||||
uses: OliverMKing/javascript-release-workflow/.github/workflows/tag-and-release.yml@main
|
|
@ -205,7 +205,4 @@ describe('Set context', () => {
|
|||
expect(fs.chmodSync).toBeCalledWith(kubeconfigPath, '600')
|
||||
expect(core.exportVariable).toBeCalledWith('KUBECONFIG', kubeconfigPath)
|
||||
})
|
||||
|
||||
|
||||
})
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ export async function run() {
|
|||
const useKubeLogin = useKubeLoginInput.toLowerCase() === 'true' && !admin
|
||||
const publicFqdnInput = core.getInput('public-fqdn') || ''
|
||||
const publicFqdn = publicFqdnInput.toLowerCase() === 'true'
|
||||
|
||||
|
||||
// check az tools
|
||||
const azPath = await io.which(AZ_TOOL_NAME, false)
|
||||
if (!azPath)
|
||||
|
|
Загрузка…
Ссылка в новой задаче