Skip to content

Commit

Permalink
chore: use setup@v3
Browse files Browse the repository at this point in the history
  • Loading branch information
aliscott committed Feb 28, 2024
1 parent e646154 commit d5dd739
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
````

The examples are then modified in two ways:
1. Use local paths for any Infracost actions, e.g. replace `uses: infracost/actions/setup@v2` with `./setup`.
1. Use local paths for any Infracost actions, e.g. replace `uses: infracost/actions/setup@v3` with `./setup`.
2. Replace any `infracost/actions/comment` steps with steps to generate and test the content of the comment using golden files from the [./testdata](./testdata) directory.

All the examples are then added to the `examples_test` GitHub Actions workflow as separate jobs.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
# ssh-keyscan github.com >> ~/.ssh/known_hosts

- name: Setup Infracost
uses: infracost/actions/setup@v2
uses: infracost/actions/setup@v3
# See https://github.com/infracost/actions/tree/master/setup for other inputs
# If you can't use this action, use Docker image infracost/infracost:ci-0.10
with:
Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup Infracost
uses: infracost/actions/setup@v2
uses: infracost/actions/setup@v3
with:
api-key: ${{ secrets.INFRACOST_API_KEY }}

Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ runs:
# Install the Infracost CLI, see https://github.com/infracost/actions/tree/master/setup
# for other inputs such as version, and pricing-api-endpoint (for self-hosted users).
- name: Setup Infracost
uses: infracost/actions/setup@v2
uses: infracost/actions/setup@v3
with:
api-key: ${{ inputs.api_key }}

Expand Down
2 changes: 1 addition & 1 deletion setup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ See the [top-level readme](https://github.com/infracost/actions) for examples of
```yml
steps:
- name: Setup Infracost
uses: infracost/actions/setup@v2
uses: infracost/actions/setup@v3
with:
api-key: ${{ secrets.INFRACOST_API_KEY }}
```
Expand Down
2 changes: 1 addition & 1 deletion testdata/tests/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
# ssh-keyscan github.com >> ~/.ssh/known_hosts

- name: Setup Infracost
uses: infracost/actions/setup@v2
uses: infracost/actions/setup@v3
# See https://github.com/infracost/actions/tree/master/setup for other inputs
# If you can't use this action, use Docker image infracost/infracost:ci-0.10
with:
Expand Down

0 comments on commit d5dd739

Please sign in to comment.