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

Bump actions to latest major version #632

Merged
merged 1 commit into from
Apr 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 4 additions & 4 deletions octo/builder_dependencies.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func contributeBuildImage(descriptor Descriptor, image string, classifier string
RunsOn: []actions.VirtualEnvironment{actions.UbuntuLatest},
Steps: []actions.Step{
{
Uses: "actions/setup-go@v2",
Uses: "actions/setup-go@v3",
With: map[string]interface{}{"go-version": GoVersion},
},
{
Expand Down Expand Up @@ -117,7 +117,7 @@ func contributeBuildImage(descriptor Descriptor, image string, classifier string
},
},
{
Uses: "peter-evans/create-pull-request@v3",
Uses: "peter-evans/create-pull-request@v4",
With: map[string]interface{}{
"token": descriptor.GitHub.Token,
"author": fmt.Sprintf("%[1]s <%[1]s@users.noreply.github.com>", descriptor.GitHub.Username),
Expand Down Expand Up @@ -157,7 +157,7 @@ func contributeLifecycle(descriptor Descriptor) (Contribution, error) {
RunsOn: []actions.VirtualEnvironment{actions.UbuntuLatest},
Steps: []actions.Step{
{
Uses: "actions/setup-go@v2",
Uses: "actions/setup-go@v3",
With: map[string]interface{}{"go-version": GoVersion},
},
{
Expand Down Expand Up @@ -191,7 +191,7 @@ func contributeLifecycle(descriptor Descriptor) (Contribution, error) {
},
},
{
Uses: "peter-evans/create-pull-request@v3",
Uses: "peter-evans/create-pull-request@v4",
With: map[string]interface{}{
"token": descriptor.GitHub.Token,
"author": fmt.Sprintf("%[1]s <%[1]s@users.noreply.github.com>", descriptor.GitHub.Username),
Expand Down
4 changes: 2 additions & 2 deletions octo/buildpack_dependencies.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func ContributeBuildpackDependencies(descriptor Descriptor) ([]Contribution, err
RunsOn: []actions.VirtualEnvironment{actions.UbuntuLatest},
Steps: []actions.Step{
{
Uses: "actions/setup-go@v2",
Uses: "actions/setup-go@v3",
With: map[string]interface{}{"go-version": GoVersion},
},
{
Expand Down Expand Up @@ -77,7 +77,7 @@ func ContributeBuildpackDependencies(descriptor Descriptor) ([]Contribution, err
"PURL_PATTERN": d.PURLPattern,
},
}, {
Uses: "peter-evans/create-pull-request@v3",
Uses: "peter-evans/create-pull-request@v4",
With: map[string]interface{}{
"token": descriptor.GitHub.Token,
"author": fmt.Sprintf("%[1]s <%[1]s@users.noreply.github.com>", descriptor.GitHub.Username),
Expand Down
2 changes: 1 addition & 1 deletion octo/create_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func ContributeCreateBuilder(descriptor Descriptor) (*Contribution, error) {
RunsOn: []actions.VirtualEnvironment{actions.UbuntuLatest},
Steps: []actions.Step{
{
Uses: "actions/setup-go@v2",
Uses: "actions/setup-go@v3",
With: map[string]interface{}{"go-version": GoVersion},
},
{
Expand Down
4 changes: 2 additions & 2 deletions octo/create_package.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func ContributeCreatePackage(descriptor Descriptor) (*Contribution, error) {
RunsOn: []actions.VirtualEnvironment{actions.UbuntuLatest},
Steps: []actions.Step{
{
Uses: "actions/setup-go@v2",
Uses: "actions/setup-go@v3",
With: map[string]interface{}{"go-version": GoVersion},
},
{
Expand All @@ -95,7 +95,7 @@ func ContributeCreatePackage(descriptor Descriptor) (*Contribution, error) {
Uses: "actions/checkout@v3",
},
{
Uses: "actions/cache@v2",
Uses: "actions/cache@v3",
If: fmt.Sprintf("${{ %t }}", descriptor.Package.IncludeDependencies),
With: map[string]interface{}{
"path": strings.Join([]string{
Expand Down
2 changes: 1 addition & 1 deletion octo/draft_release.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func ContributeDraftRelease(descriptor Descriptor) ([]Contribution, error) {
},
actions.Step{
Name: "Update draft release with buildpack information",
Uses: "ghcr.io/paketo-buildpacks/actions/draft-release",
Uses: "docker://ghcr.io/paketo-buildpacks/actions/draft-release:main",
With: map[string]interface{}{
"github_token": descriptor.GitHub.Token,
"release_id": "${{ steps.release-drafter.outputs.id }}",
Expand Down
2 changes: 1 addition & 1 deletion octo/lite_packages.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func contributeLitePackage(descriptor Descriptor, republishImage RepublishImage)
},
},
{
Uses: "actions/setup-go@v2",
Uses: "actions/setup-go@v3",
If: "${{ ! steps.version.outputs.skip }}",
With: map[string]interface{}{"go-version": GoVersion},
},
Expand Down
4 changes: 2 additions & 2 deletions octo/offline_packages.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ func contributeOfflinePackage(descriptor Descriptor, offlinePackage OfflinePacka
},
},
{
Uses: "actions/setup-go@v2",
Uses: "actions/setup-go@v3",
If: "${{ ! steps.version.outputs.skip }}",
With: map[string]interface{}{"go-version": GoVersion},
},
{
Uses: "actions/cache@v2",
Uses: "actions/cache@v3",
If: "${{ ! steps.version.outputs.skip }}",
With: map[string]interface{}{
"path": strings.Join([]string{
Expand Down
4 changes: 2 additions & 2 deletions octo/package_dependencies.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func contributePackageDependency(descriptor Descriptor, name string, bpId string
RunsOn: []actions.VirtualEnvironment{actions.UbuntuLatest},
Steps: []actions.Step{
{
Uses: "actions/setup-go@v2",
Uses: "actions/setup-go@v3",
With: map[string]interface{}{"go-version": GoVersion},
},
{
Expand All @@ -162,7 +162,7 @@ func contributePackageDependency(descriptor Descriptor, name string, bpId string
Env: map[string]string{"DEPENDENCY": name},
},
{
Uses: "peter-evans/create-pull-request@v3",
Uses: "peter-evans/create-pull-request@v4",
With: map[string]interface{}{
"token": descriptor.GitHub.Token,
"author": fmt.Sprintf("%[1]s <%[1]s@users.noreply.github.com>", descriptor.GitHub.Username),
Expand Down
12 changes: 6 additions & 6 deletions octo/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ func ContributeTest(descriptor Descriptor) (*Contribution, error) {
Uses: "actions/checkout@v3",
},
{
Uses: "actions/cache@v2",
Uses: "actions/cache@v3",
With: map[string]interface{}{
"path": "${{ env.HOME }}/go/pkg/mod",
"key": "${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}",
"restore-keys": "${{ runner.os }}-go-",
},
},
{
Uses: "actions/setup-go@v2",
Uses: "actions/setup-go@v3",
With: map[string]interface{}{"go-version": GoVersion},
},
},
Expand Down Expand Up @@ -115,15 +115,15 @@ func ContributeTest(descriptor Descriptor) (*Contribution, error) {
Uses: "actions/checkout@v2",
},
{
Uses: "actions/cache@v2",
Uses: "actions/cache@v3",
With: map[string]interface{}{
"path": "${{ env.HOME }}/go/pkg/mod",
"key": "${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}",
"restore-keys": "${{ runner.os }}-go-",
},
},
{
Uses: "actions/setup-go@v2",
Uses: "actions/setup-go@v3",
With: map[string]interface{}{"go-version": GoVersion},
},
{
Expand Down Expand Up @@ -201,7 +201,7 @@ func ContributeTest(descriptor Descriptor) (*Contribution, error) {
RunsOn: []actions.VirtualEnvironment{actions.UbuntuLatest},
Steps: []actions.Step{
{
Uses: "actions/setup-go@v2",
Uses: "actions/setup-go@v3",
With: map[string]interface{}{"go-version": GoVersion},
},
{
Expand All @@ -222,7 +222,7 @@ func ContributeTest(descriptor Descriptor) (*Contribution, error) {
Uses: "actions/checkout@v3",
},
{
Uses: "actions/cache@v2",
Uses: "actions/cache@v3",
With: map[string]interface{}{
"path": strings.Join([]string{
"${{ env.HOME }}/.pack",
Expand Down
4 changes: 2 additions & 2 deletions octo/update_pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func ContributeUpdatePipeline(descriptor Descriptor) (Contribution, error) {
RunsOn: []actions.VirtualEnvironment{actions.UbuntuLatest},
Steps: []actions.Step{
{
Uses: "actions/setup-go@v2",
Uses: "actions/setup-go@v3",
With: map[string]interface{}{"go-version": GoVersion},
},
{
Expand All @@ -61,7 +61,7 @@ func ContributeUpdatePipeline(descriptor Descriptor) (Contribution, error) {
},
},
{
Uses: "peter-evans/create-pull-request@v3",
Uses: "peter-evans/create-pull-request@v4",
With: map[string]interface{}{
"token": descriptor.GitHub.Token,
"author": fmt.Sprintf("%[1]s <%[1]s@users.noreply.github.com>", descriptor.GitHub.Username),
Expand Down