Skip to content

Commit

Permalink
Support Artifacts API v4 (#25)
Browse files Browse the repository at this point in the history
## what
* Update artifact v4
  • Loading branch information
goruha authored Feb 28, 2024
1 parent e0de318 commit 33cac12
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 13 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Major Release Tagger

on:
release:
types:
- published

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: cloudposse/github-action-major-release-tagger@v1
2 changes: 1 addition & 1 deletion .github/workflows/setup-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- uses: cloudposse/github-action-matrix-outputs-write@0.5.0
- uses: cloudposse/github-action-matrix-outputs-write@v1
id: writer
with:
matrix-step-name: ${{ inputs.matrix-step-name }}
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 @@ -20,7 +20,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- uses: cloudposse/github-action-matrix-outputs-write@0.5.0
- uses: cloudposse/github-action-matrix-outputs-write@v1
with:
matrix-step-name: ${{ github.job }}
matrix-key: ${{ matrix.target }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-positive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- uses: cloudposse/github-action-matrix-outputs-write@0.5.0
- uses: cloudposse/github-action-matrix-outputs-write@v1
with:
matrix-step-name: ${{ github.job }}
matrix-key: ${{ matrix.target }}
Expand Down
26 changes: 21 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,22 @@ We implement the workaround with two GitHub Actions:
* [Matrix Outputs Write](https://github.com/cloudposse/github-action-matrix-outputs-write)
* [Matrix Outputs Read](https://github.com/cloudposse/github-action-matrix-outputs-read)

## v1 - What's new

> [!IMPORTANT]
> cloudposse/github-action-matrix-outputs-read@v1+ is not currently supported on GHES yet. If you are on GHES, you
> must use [v0](https://github.com/cloudposse/github-action-matrix-outputs-read/releases/tag/0.1.2).
The release of `cloudposse/github-action-matrix-outputs-write@v1` and `cloudposse/github-action-matrix-outputs-read@v1`
are major changes to the backend architecture of Artifacts. They have numerous performance and behavioral improvements.

For more information, see the [`@actions/artifact`](https://github.com/actions/toolkit/tree/main/packages/artifact) documentation.

### Breaking Changes

1. On self hosted runners, additional [firewall rules](https://github.com/actions/toolkit/tree/main/packages/artifact#breaking-changes) may be required.
2. `cloudposse/github-action-matrix-outputs-read@v1` can not be read outputs writen by `cloudposse/github-action-matrix-outputs-write@v0`.




Expand Down Expand Up @@ -106,7 +122,7 @@ Example how you can use workaround to reference matrix job outputs.
PLATFORM=${{ matrix.platform }}
## Write for matrix outputs workaround
- uses: cloudposse/github-action-matrix-outputs-write@0.3.1
- uses: cloudposse/github-action-matrix-outputs-write@v1
id: out
with:
matrix-step-name: ${{ github.job }}
Expand All @@ -119,7 +135,7 @@ Example how you can use workaround to reference matrix job outputs.
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: cloudposse/github-action-matrix-outputs-read@main
- uses: cloudposse/github-action-matrix-outputs-read@v1
id: read
with:
matrix-step-name: build
Expand Down Expand Up @@ -203,7 +219,7 @@ jobs:
needs: [build]
steps:
## Write for matrix outputs workaround
- uses: cloudposse/github-action-matrix-outputs-write@0.3.1
- uses: cloudposse/github-action-matrix-outputs-write@v1
id: out
with:
matrix-step-name: ${{ inputs.matrix-step-name }}
Expand Down Expand Up @@ -243,7 +259,7 @@ jobs:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: cloudposse/github-action-matrix-outputs-read@main
- uses: cloudposse/github-action-matrix-outputs-read@v1
id: read
with:
matrix-step-name: build
Expand Down Expand Up @@ -416,7 +432,7 @@ In general, PRs are welcome. We follow the typical "fork-and-pull" Git workflow.

## Copyright

Copyright © 2017-2023 [Cloud Posse, LLC](https://cpco.io/copyright)
Copyright © 2017-2024 [Cloud Posse, LLC](https://cpco.io/copyright)



Expand Down
24 changes: 20 additions & 4 deletions README.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,22 @@ introduction: |-
* [Matrix Outputs Write](https://github.com/cloudposse/github-action-matrix-outputs-write)
* [Matrix Outputs Read](https://github.com/cloudposse/github-action-matrix-outputs-read)
## v1 - What's new
> [!IMPORTANT]
> cloudposse/github-action-matrix-outputs-read@v1+ is not currently supported on GHES yet. If you are on GHES, you
> must use [v0](https://github.com/cloudposse/github-action-matrix-outputs-read/releases/tag/0.1.2).
The release of `cloudposse/github-action-matrix-outputs-write@v1` and `cloudposse/github-action-matrix-outputs-read@v1`
are major changes to the backend architecture of Artifacts. They have numerous performance and behavioral improvements.
For more information, see the [`@actions/artifact`](https://github.com/actions/toolkit/tree/main/packages/artifact) documentation.
### Breaking Changes
1. On self hosted runners, additional [firewall rules](https://github.com/actions/toolkit/tree/main/packages/artifact#breaking-changes) may be required.
2. `cloudposse/github-action-matrix-outputs-read@v1` can not be read outputs writen by `cloudposse/github-action-matrix-outputs-write@v0`.
references:
- name: "github-actions-workflows"
description: "Reusable workflows for different types of projects"
Expand Down Expand Up @@ -88,7 +104,7 @@ usage: |-
PLATFORM=${{ matrix.platform }}
## Write for matrix outputs workaround
- uses: cloudposse/github-action-matrix-outputs-write@0.3.1
- uses: cloudposse/github-action-matrix-outputs-write@v1
id: out
with:
matrix-step-name: ${{ github.job }}
Expand All @@ -101,7 +117,7 @@ usage: |-
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: cloudposse/github-action-matrix-outputs-read@main
- uses: cloudposse/github-action-matrix-outputs-read@v1
id: read
with:
matrix-step-name: build
Expand Down Expand Up @@ -185,7 +201,7 @@ usage: |-
needs: [build]
steps:
## Write for matrix outputs workaround
- uses: cloudposse/github-action-matrix-outputs-write@0.3.1
- uses: cloudposse/github-action-matrix-outputs-write@v1
id: out
with:
matrix-step-name: ${{ inputs.matrix-step-name }}
Expand Down Expand Up @@ -225,7 +241,7 @@ usage: |-
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: cloudposse/github-action-matrix-outputs-read@main
- uses: cloudposse/github-action-matrix-outputs-read@v1
id: read
with:
matrix-step-name: build
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ runs:
version: 1.6
force: 'true'

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4

- id: context
shell: bash
Expand Down

0 comments on commit 33cac12

Please sign in to comment.