-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating release branch to release new version (#31)
* Update action.yml (#6) * Update action.yml - update name (#9) * Update action.yml * Update action.yml * enable local debugging (#8) * Fixing ci tests and adding code owners (#11) * fix ci tests with codeowners * adding how to debug.md * updating uri * updating test file * updating test file * error for deployment * error for deployment * updating options * Add changes * space and warning fix (#12) * Add changes * Updates in action.yaml (#13) * action edits * update content * Adding validate mode (#14) * adding validate mode * update readme * PR review * PR review * Add changes * Added workflow for stale issues * Update stale.yml * Adding workflow for default label * Upgrade @actions/core to version 1.2.6 or later (#24) * Upgrade @actions/core to version 1.2.6 or later This is as per the security vulnerability : https://github.com/Azure/arm-deploy/network/alert/package-lock.json/@actions%2Fcore/open * update Co-authored-by: Kanika Pasrija <[email protected]> * Add changes * Documentation for ReleaseProcess (#25) * Create ReleaseProcess.md * Update HowToDebug.md * Update ReleaseProcess.md * Update ReleaseProcess.md * updating references in advance examples (#20) * updating reference * updating reference * Updated Readme for Azure ARM Deploy Action (#28) * Update README.md * Update README.md Co-authored-by: Usha N <[email protected]> * Change the subscriptionId paremeter to be completely optional (#19) * Change the subscriptionId paremeter to be completely optional Use the subscription id set by the Azure Login action by default. * address feedback * Update exampleGuide.md (#26) * Update exampleGuide.md * Update exampleGuide.md * Add changes * Update ReleaseProcess.md Dummy commit to run build-release WF Co-authored-by: Bishal Prasad <[email protected]> Co-authored-by: GitHub Action <[email protected]> Co-authored-by: t-dedah <[email protected]> Co-authored-by: Deepak Dahiya <[email protected]> Co-authored-by: Kanika Pasrija <[email protected]> Co-authored-by: pulkitaggarwl <[email protected]> Co-authored-by: Zainudeen V K <[email protected]> Co-authored-by: Usha N <[email protected]> Co-authored-by: harvey-k <[email protected]>
- Loading branch information
1 parent
0541b76
commit 70ed799
Showing
24 changed files
with
314 additions
and
216 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @bishal-pdmsft @kanika1894 @pulkitaggarwl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Mark issues "default" | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0/3 * * *" | ||
|
||
jobs: | ||
stale: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/stale@v3 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-issue-message: 'This issue is marked default for generating issues report.' | ||
stale-issue-label: 'default' | ||
days-before-stale: 0 | ||
days-before-close: -1 | ||
operations-per-run: 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Mark stale issues | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0/3 * * *" | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/stale@v3 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-issue-message: "This issue is stale because it has been open for 7 days with no activity." | ||
stale-issue-label: "stale" | ||
days-before-stale: 7 | ||
days-before-close: -1 | ||
operations-per-run: 100 | ||
exempt-issue-labels: "backlog" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Launch Program", | ||
"skipFiles": [ | ||
"<node_internals>/**" | ||
], | ||
"program": "${workspaceFolder}/src/entrypoint.ts", | ||
"outFiles": [ | ||
"${workspaceFolder}/_build/*.js" | ||
], | ||
"env": { | ||
"INPUT_SCOPE": "resourcegroup", | ||
"INPUT_SUBSCRIPTIONID": "c00d16c7-6c1f-4c03-9be1-6934a4c49682", | ||
"INPUT_RESOURCEGROUPNAME": "kptest", | ||
"INPUT_TEMPLATE": "./test/template.json", | ||
"INPUT_PARAMETERS": "./test/parameters.json", | ||
"INPUT_DEPLOYMENTNAME": "github-test", | ||
"INPUT_DEPLOYMENTMODE": "Incremental" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
**Debugging the ARM action in local machine** | ||
|
||
Open PowerShell, go to the directory where the repo is stored (.../arm-deploy/) and execute the following commands. | ||
|
||
**1.npm install** \ | ||
npm install downloads dependencies defined in a package. json file and generates a node_modules folder with the installed modules. \ | ||
**2.npm install -g @vercel/ncc** \ | ||
**3.ncc build src/entrypoint.ts -s -o _build** \ | ||
ncc is a simple CLI for compiling a Node.js module into a single file, together with all its dependencies, gcc-style. \ | ||
**4. az login** \ | ||
This will open the browser, where you can do the Azure login which gives you proper access required for the action. | ||
|
||
Open the arm-deploy repository in VSCode, attach debugging points at required places _(flow begins from entrypoint.ts)_ and press F5. The debugger gets attached. | ||
|
||
Also, for various input values required while testing, you can specify those as environment variables in launch.json that gets created. \ | ||
_Happy debugging!_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
**Releasing a new version** | ||
|
||
Semanting versioning is used to release different versions of the action. Following steps are to be followed : | ||
|
||
1. Create a new branch for every major version. \ | ||
Example, releases/v1, releases/v2. | ||
2. For every minor and patch release for a major version, update the corresponding release branch. \ | ||
Example, for releasing v1.1.1, update releases/v1. | ||
3. Create tags for every new release (major/minor/patch). \ | ||
Example,v1.0.0. , v1.0.1, v2.0.1, etc. and also have tags like v1, v2 for every major version release. | ||
4. On releasing minor and patch versions, update the tag of the corresponding major version. \ | ||
Example, for releasing v1.0.1, update the v1 tag to point to the ref of the current release. \ | ||
The following commands are to be run on the release\v1 branch so that it picks the latest commit and updates the v1 tag accordingly : | ||
(Ensure that you are on same commit locally as you want to release.) | ||
* `git tag -fa v1 -m "Update v1 tag"` | ||
* `git push origin v1 --force` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.