Skip to content

Commit 0c8de81

Browse files
committed
ci: upgrade to dargmuesli/github-actions action to v3
1 parent b8ef5f6 commit 0c8de81

File tree

2 files changed

+14
-19
lines changed

2 files changed

+14
-19
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,31 @@
11
name: CI
22

3-
permissions:
4-
contents: read
3+
permissions: {}
54

65
on:
76
pull_request:
87
push:
98
branches:
109
- alpha
1110
- beta
11+
- main
1212
- master
1313
- renovate/**
1414

1515
jobs:
16-
prepare_jobs:
17-
name: "Prepare: job optimization"
18-
runs-on: ubuntu-latest
19-
outputs:
20-
pr_found: ${{ steps.pr.outputs.pr_found }}
21-
steps:
22-
- name: Get current PR
23-
id: pr
24-
uses: 8BitJonny/gh-get-current-pr@4056877062a1f3b624d5d4c2bedefa9cf51435c9 # 4.0.0
25-
with:
26-
filterOutClosed: true
27-
filterOutDraft: true
16+
ci-optimization:
17+
name: CI optimization
18+
uses: dargmuesli/github-actions/.github/workflows/ci-optimization.yml@714a68188444d710ffa3e9f35a05f6a9d420931d # 3.2.0
19+
permissions:
20+
pull-requests: read
2821
release_semantic_dry:
29-
needs: prepare_jobs
22+
needs: ci-optimization
23+
if: needs.ci-optimization.outputs.continue == 'true'
3024
name: Release (semantic, dry)
3125
uses: dargmuesli/github-actions/.github/workflows/release-semantic.yml@714a68188444d710ffa3e9f35a05f6a9d420931d # 3.2.0
32-
if: needs.prepare_jobs.outputs.pr_found == 'false' || github.event_name == 'pull_request'
3326
permissions:
3427
contents: write
28+
id-token: write
3529
secrets:
3630
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
3731
with:
@@ -44,7 +38,8 @@ jobs:
4438
packages: write
4539
with:
4640
ARTIFACT_PATH: src/.output/public/
47-
BUILD_ARGUMENTS: SITE_URL=https://dargstack-example.jonas-thelemann.de
41+
BUILD_ARGUMENTS: |
42+
SITE_URL=https://dargstack-example.jonas-thelemann.de
4843
TAG: ${{ needs.release_semantic_dry.outputs.new_release_version }}
4944
secrets:
5045
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
@@ -54,6 +49,7 @@ jobs:
5449
uses: dargmuesli/github-actions/.github/workflows/release-semantic.yml@714a68188444d710ffa3e9f35a05f6a9d420931d # 3.2.0
5550
permissions:
5651
contents: write
52+
id-token: write
5753
secrets:
5854
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
5955
deploy:

.github/workflows/release-schedule.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: "Release: Scheduled"
22

3-
permissions:
4-
contents: read
3+
permissions: {}
54

65
on:
76
schedule:

0 commit comments

Comments
 (0)