Skip to content

Commit d13e83e

Browse files
authored
Fix the create-release-pr action (#258)
* Explicitly unignore the .github directory * Set create-pr action to use a stable version * Set a better PR title * Only set dry_run if the env value is true-ish `create-release` will set the value to `false`
1 parent d75b20a commit d13e83e

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/create-release-pr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,11 @@ jobs:
6969
with:
7070
tool: cargo-release
7171

72-
- uses: cargo-bins/release-pr@main
72+
- uses: cargo-bins/release-pr@v2
7373
with:
7474
github-token: ${{ secrets.GITHUB_TOKEN }}
7575
version: ${{ inputs.version }}
7676
crate-name: ${{ inputs.crate || 'neo4rs' }}
77+
pr-title: "Set <%= crates.length === 1 ? crates[0].name : '' %> version to <%= version.actual %>"
7778
check-semver: true
7879
base-branch: main

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
Cargo.lock
33
container-license-acceptance.txt
44
Session.vim
5+
!.github

xtask/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ struct Env {
155155
}
156156

157157
fn task_env() -> Env {
158-
let dry_run = env::var("DRY_RUN").is_ok();
158+
let dry_run = env::var_os("DRY_RUN").is_some_and(|env| env == "1" || env == "true");
159159

160160
let workspace = env::var("WORKSPACE_ROOT");
161161

0 commit comments

Comments
 (0)