Skip to content

Commit 6025c84

Browse files
v2 new release (#45)
1 parent 7ad2aa6 commit 6025c84

File tree

110 files changed

+69871
-450
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+69871
-450
lines changed

.github/CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @aksatlanta
1+
* @Azure/aks-atlanta

.github/workflows/release-pr.yml

+5-47
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Create release PR"
1+
name: Create release PR
22

33
on:
44
workflow_dispatch:
@@ -8,49 +8,7 @@ on:
88
required: true
99

1010
jobs:
11-
createPullRequest:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v2
15-
with:
16-
fetch-depth: 0
17-
- name: Check if remote branch exists
18-
env:
19-
BRANCH: releases/${{ github.event.inputs.release }}
20-
run: |
21-
echo "##[set-output name=exists;]$(echo $(if [[ -z $(git ls-remote --heads origin ${BRANCH}) ]]; then echo false; else echo true; fi;))"
22-
id: extract-branch-status
23-
# these two only need to occur if the branch exists
24-
- name: Checkout proper branch
25-
if: ${{ steps.extract-branch-status.outputs.exists == 'true' }}
26-
env:
27-
BRANCH: releases/${{ github.event.inputs.release }}
28-
run: git checkout ${BRANCH}
29-
- name: Reset promotion branch
30-
if: ${{ steps.extract-branch-status.outputs.exists == 'true' }}
31-
run: |
32-
git fetch origin main:main
33-
git reset --hard main
34-
- name: Install packages
35-
run: |
36-
rm -rf node_modules/
37-
npm install --no-bin-links
38-
npm run build
39-
- name: Remove node_modules from gitignore
40-
run: |
41-
sed -i '/node_modules/d' ./.gitignore
42-
- name: Create branch
43-
uses: peterjgrainger/[email protected]
44-
env:
45-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46-
with:
47-
branch: releases/${{ github.event.inputs.release }}
48-
- name: Create pull request
49-
uses: peter-evans/create-pull-request@v3
50-
with:
51-
token: ${{ secrets.GITHUB_TOKEN }}
52-
commit-message: Add node modules and new code for release
53-
title: ${{ github.event.inputs.release }} new release
54-
base: releases/${{ github.event.inputs.release }}
55-
branch: create-release
56-
delete-branch: true
11+
release-pr:
12+
uses: OliverMKing/javascript-release-workflow/.github/workflows/release-pr.yml@main
13+
with:
14+
release: ${{ github.event.inputs.release }}

.github/workflows/tag-and-draft.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Tag and create release draft
2+
3+
on:
4+
push:
5+
branches:
6+
- releases/*
7+
8+
jobs:
9+
tag-and-release:
10+
uses: OliverMKing/javascript-release-workflow/.github/workflows/tag-and-release.yml@main

.github/workflows/tag-and-release.yml

-77
This file was deleted.

.github/workflows/ts-build-check.yml

-41
This file was deleted.

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -327,3 +327,5 @@ ASALocalRun/
327327

328328
# MFractors (Xamarin productivity tool) working folder
329329
.mfractor/
330+
331+
# Transpiled JS

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Acceptable values are latest or any semantic version string like `v1.15.0`. Use this action in workflow to define which version of kubectl will be used.
55

66
```yaml
7-
- uses: azure/setup-kubectl@v1
7+
- uses: azure/setup-kubectl@v2.0
88
with:
99
version: '<version>' # default is latest stable
1010
id: install

action.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
name: 'Kubectl tool installer'
2-
description: 'Install a specific version of kubectl binary. Acceptable values are latest or any semantic version string like 1.15.0'
3-
inputs:
1+
name: "Kubectl tool installer"
2+
description: "Install a specific version of kubectl binary. Acceptable values are latest or any semantic version string like 1.15.0"
3+
inputs:
44
version:
5-
description: 'Version of kubectl'
5+
description: "Version of kubectl"
66
required: true
7-
default: 'latest'
7+
default: "latest"
88
outputs:
99
kubectl-path:
10-
description: 'Path to the cached kubectl binary'
10+
description: "Path to the cached kubectl binary"
1111
branding:
12-
color: 'blue'
12+
color: "blue"
1313
runs:
14-
using: 'node12'
15-
main: 'lib/run.js'
14+
using: "node12"
15+
main: "lib/index.js"

lib/helpers.js

-32
This file was deleted.

0 commit comments

Comments
 (0)