Skip to content

Commit

Permalink
fix(ci): broken release action yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
sdd committed Dec 15, 2024
1 parent 33f4510 commit 3cbfa4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pre-release-string-updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@ jobs:
with:
find: "^kiddo = \".*\"$"
include: "README.md"
replace: ${{ format('kiddo = "{0}"', steps.crate-version.outputs.version }}
replace: ${{ format('kiddo = "{0}"', steps.crate-version.outputs.version) }}

- name: Find and Replace 2/3
uses: jacobtomlinson/gha-find-replace@v3
with:
find: "^//! kiddo = \".*\"$"
include: "src/lib.rs"
replace: ${{ format('kiddo = "{0}"', steps.crate-version.outputs.version }}
replace: ${{ format('kiddo = "{0}"', steps.crate-version.outputs.version) }}

- name: Find and Replace 3/3
uses: jacobtomlinson/gha-find-replace@v3
with:
find: "\"https://docs.rs/kiddo/.*?\""
include: "src/lib.rs"
replace: ${{ format('"https://docs.rs/kiddo/{0}"', steps.crate-version.outputs.version }}
replace: ${{ format('"https://docs.rs/kiddo/{0}"', steps.crate-version.outputs.version) }}

- name: Commit files
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
release-and-publish:
if: ${{ github.event.pull_request.merged }} && contains(github.event.pull_request.labels.*.name, 'release')
if: ${{ github.event.pull_request.merged && contains(github.event.pull_request.labels.*.name, 'release') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 3cbfa4e

Please # to comment.