Skip to content

Commit

Permalink
docs: Update examples from v1 to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
sondrelg committed Feb 16, 2023
1 parent 482ce28 commit 23d5585
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Supports both organizational and personal accounts.
To use the action, simply add it to your GitHub workflow, like this:

```yaml
- uses: snok/container-retention-policy@v1
- uses: snok/container-retention-policy@v2
with:
image-names: dev, web, test*
cut-off: two hours ago UTC+2
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Delete 'dev' containers older than a week
uses: snok/container-retention-policy@v1
uses: snok/container-retention-policy@v2
with:
image-names: python-dev, js-dev
cut-off: A week ago UTC
Expand All @@ -77,7 +77,7 @@ jobs:
token: ${{ secrets.PAT }}

- name: Delete all test containers older than a month, using a wildcard
uses: snok/container-retention-policy@v1
uses: snok/container-retention-policy@v2
with:
image-names: python-test*, js-test*
cut-off: One month ago UTC
Expand All @@ -103,7 +103,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Delete old images
uses: snok/container-retention-policy@v1
uses: snok/container-retention-policy@v2
with:
image-names: dev/*
cut-off: One month ago UTC
Expand All @@ -127,7 +127,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Delete old released images
uses: snok/container-retention-policy@v1
uses: snok/container-retention-policy@v2
with:
image-names: dev/*
cut-off: One month ago UTC
Expand All @@ -136,7 +136,7 @@ jobs:
account-type: personal
token: ${{ secrets.PAT }}
- name: Delete old pre-release images
uses: snok/container-retention-policy@v1
uses: snok/container-retention-policy@v2
with:
image-names: dev/*
cut-off: One week ago UTC
Expand Down

0 comments on commit 23d5585

Please sign in to comment.