Skip to content

Commit

Permalink
Update nick-fields/assert-action action to v2 (#21)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Feb 8, 2024
1 parent da5ede5 commit 3f23f40
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-auto-from.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,17 @@ jobs:
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: nick-fields/assert-action@v1
- uses: nick-fields/assert-action@v2
with:
expected: 'success'
actual: "${{ needs.test.outputs.result }}"

- uses: nick-fields/assert-action@v1
- uses: nick-fields/assert-action@v2
with:
expected: registry.hub.docker.com/${{ github.event.repository.owner.login }}/${{ github.event.repository.name }}
actual: "${{ needs.test.outputs.image }}"

- uses: nick-fields/assert-action@v1
- uses: nick-fields/assert-action@v2
with:
expected: ${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}
actual: "${{ needs.test.outputs.tag }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-auto-to-no-metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: nick-fields/assert-action@v1
- uses: nick-fields/assert-action@v2
with:
expected: 'failure'
actual: "${{ needs.test.outputs.result }}"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-auto-to.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ jobs:
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: nick-fields/assert-action@v1
- uses: nick-fields/assert-action@v2
with:
expected: 'success'
actual: "${{ needs.test.outputs.result }}"

- uses: nick-fields/assert-action@v1
- uses: nick-fields/assert-action@v2
with:
expected: registry.hub.docker.com/${{ github.event.repository.owner.login }}/${{ github.event.repository.name }}
actual: "${{ needs.test.outputs.image }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-negative.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: nick-fields/assert-action@v1
- uses: nick-fields/assert-action@v2
with:
expected: 'failure'
actual: ${{ needs.test.outputs.result }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-positive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,17 @@ jobs:
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: nick-fields/assert-action@v1
- uses: nick-fields/assert-action@v2
with:
expected: 'success'
actual: "${{ needs.test.outputs.result }}"

- uses: nick-fields/assert-action@v1
- uses: nick-fields/assert-action@v2
with:
expected: registry.hub.docker.com/${{ github.event.repository.owner.login }}/${{ github.event.repository.name }}
actual: "${{ needs.test.outputs.image }}"

- uses: nick-fields/assert-action@v1
- uses: nick-fields/assert-action@v2
with:
expected: ${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}
actual: "${{ needs.test.outputs.tag }}"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-to-no-metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,17 @@ jobs:
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: nick-fields/assert-action@v1
- uses: nick-fields/assert-action@v2
with:
expected: 'success'
actual: "${{ needs.test.outputs.result }}"

- uses: nick-fields/assert-action@v1
- uses: nick-fields/assert-action@v2
with:
expected: registry.hub.docker.com/${{ github.event.repository.owner.login }}/${{ github.event.repository.name }}
actual: "${{ needs.test.outputs.image }}"

- uses: nick-fields/assert-action@v1
- uses: nick-fields/assert-action@v2
with:
expected: ${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}
actual: "${{ needs.test.outputs.tag }}"
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ runs:
using: "composite"
steps:
- name: Validate inputs - `use_metadata` should be true or `to` should not be empty
uses: nick-fields/assert-action@v1
uses: nick-fields/assert-action@v2
with:
expected: true
actual: ${{ ( inputs.use_metadata == 'true' ) || ( inputs.to != '' ) }}
Expand Down

0 comments on commit 3f23f40

Please sign in to comment.