From e7e8b1ad2ef2b1970a227d3c350b213d1b42a0cf Mon Sep 17 00:00:00 2001 From: David Gamero Date: Wed, 17 Jan 2024 13:10:33 -0500 Subject: [PATCH] switch to new Azure release workflows (#103) --- .github/workflows/release-pr.yml | 17 +++++++++-------- .github/workflows/tag-and-draft.yml | 10 ---------- src/run.test.ts | 3 --- src/run.ts | 2 +- 4 files changed, 10 insertions(+), 22 deletions(-) delete mode 100644 .github/workflows/tag-and-draft.yml diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index bf44899..5840976 100644 --- a/.github/workflows/release-pr.yml +++ b/.github/workflows/release-pr.yml @@ -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 diff --git a/.github/workflows/tag-and-draft.yml b/.github/workflows/tag-and-draft.yml deleted file mode 100644 index 2869a15..0000000 --- a/.github/workflows/tag-and-draft.yml +++ /dev/null @@ -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 diff --git a/src/run.test.ts b/src/run.test.ts index c7bedbe..ddd65e9 100644 --- a/src/run.test.ts +++ b/src/run.test.ts @@ -205,7 +205,4 @@ describe('Set context', () => { expect(fs.chmodSync).toBeCalledWith(kubeconfigPath, '600') expect(core.exportVariable).toBeCalledWith('KUBECONFIG', kubeconfigPath) }) - - }) - diff --git a/src/run.ts b/src/run.ts index 5670cb5..86b28ea 100644 --- a/src/run.ts +++ b/src/run.ts @@ -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)