You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Documentation says that passing a DRY_RUN of true will over-ride the configuration file and perform a dry run. I've tried specifying it as true and it still creates the tags.
Workflow
I can't upload my files, but I can paste them below...
Expected behavior
Should get a dry_run
Additional context
Running on GitHub Enterprise, but I don't think that makes a difference.
RELEASERC.JSON { "branches": [ { "name": "main" }, { "name": "pre/rc", "channel": "${name}", "prerelease": "rc" }, { "name": "beta", "channel": "${name}", "prerelease": true }, { "name": "alpha", "channel": "${name}", "prerelease": true } ], "ci": false, "plugins": [ [ "@semantic-release/commit-analyzer", { "preset": "conventionalcommits" } ], [ "@semantic-release/release-notes-generator", { "preset": "conventionalcommits" } ], [ "@semantic-release/github", { "successComment": "This ${issue.pull_request ? 'PR is included' : 'issue has been resolved'} in version ${nextRelease.version} :tada:", "labels": false, "releasedLabels": false } ], [ "@semantic-release/changelog", { "changelogFile": "CHANGELOG.md", "changelogTitle": "# Changelog\n\nAll notable changes to this project will be documented in this file." } ], [ "@semantic-release/git", { "assets": [ "CHANGELOG.md" ], "message": "chore(release): version ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" } ] ] }
WORKFLOW.YAML
``
name: Release
on:
workflow_dispatch:
inputs:
dry_run:
description: 'When set to true it does not actually publish the version, but rather writes the info for the release to the agent output'
required: false
type: boolean
default: true
workflow_call:
inputs:
dry_run:
description: 'When set to true it does not actually publish the version, but rather writes the info for the release to the agent output'
required: false
type: boolean
default: true
secrets:
PAT_REPO_OWNER:
description: 'A token passed from the caller workflow that can write to protected branches'
required: true
permissions:
contents: read # for checkout
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
# Skip running release workflow on forks
# Updated to be Actuarial Services for our GHE environment
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0
Describe the bug
Documentation says that passing a DRY_RUN of true will over-ride the configuration file and perform a dry run. I've tried specifying it as true and it still creates the tags.
Workflow
I can't upload my files, but I can paste them below...
Expected behavior
Should get a dry_run
Additional context
Running on GitHub Enterprise, but I don't think that makes a difference.
RELEASERC.JSON
{ "branches": [ { "name": "main" }, { "name": "pre/rc", "channel": "${name}", "prerelease": "rc" }, { "name": "beta", "channel": "${name}", "prerelease": true }, { "name": "alpha", "channel": "${name}", "prerelease": true } ], "ci": false, "plugins": [ [ "@semantic-release/commit-analyzer", { "preset": "conventionalcommits" } ], [ "@semantic-release/release-notes-generator", { "preset": "conventionalcommits" } ], [ "@semantic-release/github", { "successComment": "This ${issue.pull_request ? 'PR is included' : 'issue has been resolved'} in version ${nextRelease.version} :tada:", "labels": false, "releasedLabels": false } ], [ "@semantic-release/changelog", { "changelogFile": "CHANGELOG.md", "changelogTitle": "# Changelog\n\nAll notable changes to this project will be documented in this file." } ], [ "@semantic-release/git", { "assets": [ "CHANGELOG.md" ], "message": "chore(release): version ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" } ] ] }
WORKFLOW.YAML
``
name: Release
on:
workflow_dispatch:
inputs:
dry_run:
description: 'When set to true it does not actually publish the version, but rather writes the info for the release to the agent output'
required: false
type: boolean
default: true
workflow_call:
inputs:
dry_run:
description: 'When set to true it does not actually publish the version, but rather writes the info for the release to the agent output'
required: false
type: boolean
default: true
secrets:
PAT_REPO_OWNER:
description: 'A token passed from the caller workflow that can write to protected branches'
required: true
permissions:
contents: read # for checkout
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
# Skip running release workflow on forks
# Updated to be Actuarial Services for our GHE environment
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0
``
The text was updated successfully, but these errors were encountered: