Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add version and downsert #682

Closed
wants to merge 34 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
906c8e1
chore(deps-dev): bump lint-staged from 12.3.8 to 12.4.0
dependabot[bot] Apr 21, 2022
d15ffbe
chore(dist): Update dist [automated commit]
mikhailshilkov Apr 21, 2022
205aa17
Modify action
SharaevN Apr 23, 2022
1dabbf6
Delete after disable workflow
Moon1706 Apr 29, 2022
bb48fab
Resolve
SharaevN May 24, 2022
9b84303
Merge branch 'pulumi-master'
SharaevN May 24, 2022
a5fd714
Add deps
SharaevN Jun 9, 2022
85ef821
Merge branch 'pulumi-master'
SharaevN Jun 9, 2022
88bbf66
# This is a combination of 3 commits.
SharaevN Jun 10, 2022
01fd1cf
Merge
SharaevN Jun 11, 2022
33c42b2
Test errors
SharaevN Jun 11, 2022
45c1b94
chore(dist): Update dist [automated commit]
Moon1706 Jun 11, 2022
7a403ab
Merge branch 'pulumi:master' into master
Moon1706 Jun 11, 2022
722c580
Fix
SharaevN Jun 11, 2022
534a5c6
Fix 2
SharaevN Jun 11, 2022
a5cce86
chore(dist): Update dist [automated commit]
Moon1706 Jun 11, 2022
750c68e
Merge branch 'pulumi:master' into master
Moon1706 Jun 23, 2022
9026ed8
Add rm command
SharaevN Jun 23, 2022
d3427a0
chore(dist): Update dist [automated commit]
Moon1706 Jun 23, 2022
367c0d3
Update main.ts
Moon1706 Jun 23, 2022
e7a9531
Update main.ts
Moon1706 Jun 23, 2022
a79fb62
chore(dist): Update dist [automated commit]
Moon1706 Jun 23, 2022
d68029b
Update main.ts
Moon1706 Jun 23, 2022
4901027
Add rm stack and version
MikitaSharayeu Jun 24, 2022
13443d4
Fix destory
MikitaSharayeu Jun 24, 2022
5f54eb6
Fix error 2
MikitaSharayeu Jun 24, 2022
35fc75b
chore(dist): Update dist [automated commit]
Moon1706 Jun 24, 2022
7bf5756
Merge branch 'pulumi:master' into master
Moon1706 Jun 24, 2022
5a38725
Resolve
SharaevN Jul 9, 2022
e50404f
Merge branch 'pulumi-master'
SharaevN Jul 9, 2022
e4770e1
chore(dist): Update dist [automated commit]
Moon1706 Jul 9, 2022
6133b6b
Get new features
SharaevN Jul 21, 2022
a265716
t push origin masterMerge branch 'pulumi-master'
SharaevN Jul 21, 2022
b7f24f9
chore(dist): Update dist [automated commit]
Moon1706 Jul 21, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ updates:
- "impact/no-changelog-required"
- "javascript"
- "dependencies"

5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14.x
node-version: 16.x
cache: yarn
- run: yarn install
- run: yarn build
Expand All @@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '^1.13.1'
go-version: '^1.17.0'
- run: |
pulumi login --local
pulumi stack init dev
Expand All @@ -51,6 +51,7 @@ jobs:
with:
command: up
cloud-url: file://~
version: ^3
stack-name: dev
upsert: true
work-dir: .github/test-stacks/golang
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
- 'CHANGELOG.md'
- 'README.md'

env:
PULUMI_VERSION: '^3'

jobs:
install-and-build:
name: Install and Build GHA
Expand Down Expand Up @@ -74,7 +77,9 @@ jobs:
with:
command: ${{ matrix.command }}
cloud-url: file://~
version: ${{ env.PULUMI_VERSION }}
upsert: true
downsert: true
stack-name: dev
work-dir: .github/test-stacks/dotnet
config-map: "{name: {value: my-pet, secret: false}}"
Expand All @@ -100,16 +105,18 @@ jobs:

- uses: actions/setup-go@v3
with:
go-version: 1.15.x
go-version: 1.17.x

- uses: ./
env:
PULUMI_CONFIG_PASSPHRASE: not-a-secret
with:
command: ${{ matrix.command }}
cloud-url: file://~
version: ${{ env.PULUMI_VERSION }}
stack-name: dev
upsert: true
downsert: true
work-dir: .github/test-stacks/golang
config-map: "{name: {value: my-user-name, secret: false}}"

Expand Down Expand Up @@ -158,8 +165,10 @@ jobs:
with:
command: ${{ matrix.command }}
cloud-url: file://~
version: ${{ env.PULUMI_VERSION }}
stack-name: dev
upsert: true
downsert: true
work-dir: .github/test-stacks/nodejs
config-map: "{name: {value: hostname, secret: false}}"

Expand Down Expand Up @@ -219,8 +228,10 @@ jobs:
with:
command: ${{ matrix.command }}
cloud-url: file://~
version: ${{ env.PULUMI_VERSION }}
stack-name: dev
upsert: true
downsert: true
work-dir: .github/test-stacks/python
config-map: "{name: {value: hostname, secret: false}}"

Expand Down Expand Up @@ -268,8 +279,10 @@ jobs:
with:
command: up
cloud-url: file://~
version: ${{ env.PULUMI_VERSION }}
stack-name: dev
work-dir: .github/test-stacks/nodejs
upsert: true
downsert: true
refresh: true
config-map: "{name: {value: hostname, secret: false}}"
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@

- bump to runtime to node 16

## 3.18.0 (2022-06-09)

- Add configuration of Pulumi stack by `configMap` field

## 3.17.0 (2022-05-25)

- Fixes errors when pull request comment body is too large by trimming the body
when above 64k characters

## 3.16.0 (2022-02-09)

- Print the comments as a collapsed `<details>` section

## 3.15.0 (2022-01-04)

- Upgrade to Pulumi v3.21.0
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ The action can be configured with the following arguments:
- `stack-name` (required) - The name of the stack that Pulumi will be operating
on

- `version` (optional) - The version of the Pulumi tool. Defaults to `^3`.

- `work-dir` (optional) - The location of your Pulumi files. Defaults to `./`.

- `cloud-url` - (optional) - the Pulumi backend to login to. This would be the
Expand Down Expand Up @@ -89,7 +91,8 @@ The action can be configured with the following arguments:
specified one per line (example: `<value | string>,...`).

- `target` - (optional) Specify a single resource URN to update. Other resources
will not be updated. Multiple resources can be specified one per line (example: `<value | string>,...`).
will not be updated. Multiple resources can be specified one per line
(example: `<value | string>,...`).

- `target-dependents` - (optional) Allows updating of dependent targets
discovered but not specified in target.
Expand All @@ -102,6 +105,9 @@ The action can be configured with the following arguments:
will need to add back to source control as part of the action if you wish to
perform any further tasks with that stack.

- `downsert` - (optional) Remove the exist stack if all resources are deleted.
Used only with `destroy` command.

By default, this action will try to authenticate Pulumi with the
[Pulumi SaaS](https://app.pulumi.com/). If you have not specified a
`PULUMI_ACCESS_TOKEN` then you will need to specify an alternative backend via
Expand Down
8 changes: 8 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ inputs:
stack-name:
description: 'Which stack you want to apply to, eg. dev'
required: true
version:
description: 'Version of pulumi tool'
required: false
default: '^3'
work-dir:
description: 'Location of your Pulumi files. Defaults to ./'
required: false
Expand Down Expand Up @@ -73,6 +77,10 @@ inputs:
description: 'Create the stack if it currently does not exist'
required: false
default: 'false'
downsert:
description: 'Remove the stack after destroy resources'
required: false
default: 'false'
edit-pr-comment:
description: 'Edit previous PR comment instead of posting new one'
required: false
Expand Down
44 changes: 26 additions & 18 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

Loading