Skip to content

Commit 4660259

Browse files
committed
ci(workflows): dry-run semantic-release in GitHub Actions
1 parent d1b6009 commit 4660259

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,17 @@ jobs:
9898
results:
9999
name: Release / Collect results
100100
permissions:
101+
contents: write
102+
issues: write
103+
pull-requests: write
101104
checks: read
105+
container: techneg/ci-semantic-release:v1.0.1
102106
runs-on: ubuntu-latest
103107
timeout-minutes: 15
104108
steps:
109+
- run: | # Needed due to bug actions/checkout#2031
110+
git config --global --add safe.directory "$GITHUB_WORKSPACE"
111+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
105112
# yamllint disable-line rule:line-length
106113
- uses: poseidon/wait-for-status-checks@899c768d191b56eef585c18f8558da19e1f3e707 # v0.6.0
107114
with:
@@ -114,4 +121,9 @@ jobs:
114121
Test / Kitchen (ubuntu-2004-master)
115122
ignore_pattern: ^GitLab CI
116123
token: ${{ secrets.GITHUB_TOKEN }}
124+
- name: Run `semantic-release`
125+
env:
126+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
127+
run: |
128+
semantic-release --dry-run
117129
- run: echo "::notice ::Workflow success!"

0 commit comments

Comments
 (0)