generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from niaid/feat-switch-account
Initial commit for action
- Loading branch information
Showing
11 changed files
with
41,790 additions
and
2,853 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,24 +1,29 @@ | ||
name: 'build-test' | ||
on: # rebuild any PRs and main branch changes | ||
pull_request: | ||
name: Test workflow | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- 'releases/*' | ||
workflow_dispatch: | ||
inputs: | ||
account: | ||
description: "Which account are you switching to?" | ||
default: dev | ||
|
||
jobs: | ||
build: # make sure build/ci work properly | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: | | ||
npm install | ||
- run: | | ||
npm run all | ||
test: # make sure the action works on a clean machine without building | ||
runs-on: ubuntu-latest | ||
build: | ||
runs-on: self-hosted | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ./ | ||
with: | ||
milliseconds: 1000 | ||
- uses: actions/checkout@v3 | ||
- name: Verify mgmt account | ||
run: aws s3 ls | ||
- name: Test action! | ||
uses: ./ | ||
with: | ||
account: ${{ github.event.inputs.account || 'dev'}} | ||
- name: Verify target account | ||
run: aws s3 ls | ||
- name: Test action! | ||
uses: ./ | ||
with: | ||
account: mgmt | ||
- name: Verify mgmt account again | ||
run: aws s3 ls |
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 |
---|---|---|
@@ -1,11 +1,10 @@ | ||
name: 'Your name here' | ||
description: 'Provide a description here' | ||
author: 'Your name or organization here' | ||
name: 'niaid' | ||
description: 'Switches AWS credentials to change authentication between Monarch Spaces accounts' | ||
author: 'niaid' | ||
inputs: | ||
milliseconds: # change this | ||
account: | ||
required: true | ||
description: 'input description here' | ||
default: 'default value if applicable' | ||
description: 'Monarch Spaces account to switch to' | ||
runs: | ||
using: 'node16' | ||
using: 'node12' | ||
main: 'dist/index.js' |
Oops, something went wrong.