Skip to content

Commit 892bffd

Browse files
upgrade@12818479228 (#84)
Co-authored-by: galargh <[email protected]>
1 parent 4927c70 commit 892bffd

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.github/workflows/fix.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ concurrency:
2020

2121
jobs:
2222
prepare:
23-
# not starting for PRs if repo is private because we cannot write to private forks
23+
# WARN: writing to private forks is not supported
2424
if: github.event_name == 'workflow_dispatch' ||
25-
(github.event_name == 'pull_request_target' &&
26-
github.event.pull_request.head.repo.private == false) ||
25+
github.event_name == 'pull_request_target' ||
2726
(github.event_name == 'workflow_run' &&
2827
github.event.workflow_run.conclusion == 'success')
2928
permissions:
@@ -109,7 +108,7 @@ jobs:
109108
run: node lib/actions/fix-yaml-config.js
110109
working-directory: scripts
111110
- name: Upload YAML config
112-
uses: actions/upload-artifact@v3
111+
uses: actions/upload-artifact@v4
113112
with:
114113
name: ${{ env.TF_WORKSPACE }}.yml
115114
path: github/${{ env.TF_WORKSPACE }}.yml
@@ -153,7 +152,7 @@ jobs:
153152
with:
154153
path: base
155154
- name: Download YAML configs
156-
uses: actions/download-artifact@v3
155+
uses: actions/download-artifact@v4
157156
with:
158157
path: artifacts
159158
- name: Copy YAML configs

.github/workflows/plan.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
terraform plan -refresh=false -lock=false -out="${TF_WORKSPACE}.tfplan" -no-color
9494
working-directory: terraform
9595
- name: Upload terraform plan
96-
uses: actions/upload-artifact@v3
96+
uses: actions/upload-artifact@v4
9797
with:
9898
name: ${{ env.TF_WORKSPACE }}_${{ github.event.pull_request.head.sha || github.sha }}.tfplan
9999
path: terraform/${{ env.TF_WORKSPACE }}.tfplan
@@ -130,7 +130,7 @@ jobs:
130130
run: terraform init
131131
working-directory: terraform
132132
- name: Download terraform plans
133-
uses: actions/download-artifact@v3
133+
uses: actions/download-artifact@v4
134134
with:
135135
path: terraform
136136
- name: Show terraform plans

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4343
- workflows: not to use deprecated GitHub Actions expressions anymore
4444
- tf: to prevent destroy of membership and repository resources
4545
- apply: find sha for plan using proper credentials
46+
- updated upload and download artifacts actions to v4
4647

4748
### Fixed
4849
- links to supported resources in HOWTOs

terraform/locals.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ locals {
173173
} : {
174174
source = "config"
175175
index = repository
176-
archived = config.archived
176+
archived = try(config.archived, false)
177177
}
178178
] : item.index => merge(local.sources[item.source].github_repository.this[item.index], { archived = item.archived })
179179
}

0 commit comments

Comments
 (0)