Skip to content

Commit 7d03e66

Browse files
authored
Merge pull request #1473 from crazy-max/rm-deprecated-envs
remove deprecated envs
2 parents 03fe877 + 98f853d commit 7d03e66

File tree

4 files changed

+4
-36
lines changed

4 files changed

+4
-36
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1368,29 +1368,6 @@ jobs:
13681368
env:
13691369
DOCKER_BUILD_SUMMARY: false
13701370

1371-
summary-disable-deprecated:
1372-
runs-on: ubuntu-latest
1373-
steps:
1374-
-
1375-
name: Checkout
1376-
uses: actions/checkout@v6
1377-
with:
1378-
path: action
1379-
-
1380-
name: Set up Docker Buildx
1381-
uses: docker/setup-buildx-action@v4
1382-
with:
1383-
version: ${{ inputs.buildx-version || env.BUILDX_VERSION }}
1384-
driver-opts: |
1385-
image=${{ inputs.buildkit-image || env.BUILDKIT_IMAGE }}
1386-
-
1387-
name: Build
1388-
uses: ./action
1389-
with:
1390-
file: ./test/Dockerfile
1391-
env:
1392-
DOCKER_BUILD_NO_SUMMARY: true
1393-
13941371
summary-not-supported:
13951372
runs-on: ubuntu-latest
13961373
steps:

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,7 @@ function buildChecksAnnotationsEnabled(): boolean {
265265
}
266266

267267
function buildSummaryEnabled(): boolean {
268-
if (process.env.DOCKER_BUILD_NO_SUMMARY) {
269-
core.warning('DOCKER_BUILD_NO_SUMMARY is deprecated. Set DOCKER_BUILD_SUMMARY to false instead.');
270-
return !Util.parseBool(process.env.DOCKER_BUILD_NO_SUMMARY);
271-
} else if (process.env.DOCKER_BUILD_SUMMARY) {
268+
if (process.env.DOCKER_BUILD_SUMMARY) {
272269
return Util.parseBool(process.env.DOCKER_BUILD_SUMMARY);
273270
}
274271
return true;
@@ -282,13 +279,7 @@ function buildRecordUploadEnabled(): boolean {
282279
}
283280

284281
function buildRecordRetentionDays(): number | undefined {
285-
let val: string | undefined;
286-
if (process.env.DOCKER_BUILD_EXPORT_RETENTION_DAYS) {
287-
core.warning('DOCKER_BUILD_EXPORT_RETENTION_DAYS is deprecated. Use DOCKER_BUILD_RECORD_RETENTION_DAYS instead.');
288-
val = process.env.DOCKER_BUILD_EXPORT_RETENTION_DAYS;
289-
} else if (process.env.DOCKER_BUILD_RECORD_RETENTION_DAYS) {
290-
val = process.env.DOCKER_BUILD_RECORD_RETENTION_DAYS;
291-
}
282+
const val = process.env.DOCKER_BUILD_RECORD_RETENTION_DAYS;
292283
if (val) {
293284
const res = parseInt(val);
294285
if (isNaN(res)) {

0 commit comments

Comments
 (0)