Skip to content

Commit

Permalink
fix(release) use a portable sed invokation
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed Feb 28, 2025
1 parent ef1fb47 commit fee9ca5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: |
sed -i "" -e "s/unstable/stable-${{ github.event.inputs.version }}/" *.yml
sed -i".bak" -e "s/unstable/stable-${{ github.event.inputs.version }}/" *.yml
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "release: stable-${{ github.event.inputs.version }}"
Expand All @@ -28,7 +28,7 @@ jobs:
generate_release_notes: true
make_latest: true
- run: |
sed -i "" -e "s/stable-${{ github.event.inputs.version }}/unstable/" *.yml
sed -i".bak" -e "s/stable-${{ github.event.inputs.version }}/unstable/" *.yml
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "misc: working on unstable"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.bak
*.swp
.env*
docker-compose.override.yml
Expand Down
4 changes: 2 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ mv tmp CHANGELOG.md
# Set specific image tags in compose files
#

sed -i "" -e "s/unstable/${VERSION}/" *.yml
sed -i".bak" -e "s/unstable/${VERSION}/" *.yml

# Commit all changes and tag the repo
#
Expand All @@ -69,7 +69,7 @@ git tag -a "${VERSION}" -m "release" -m "${CHANGES}"
# Revert back to "unstable" for development
#

sed -i "" -e "s/${VERSION}/unstable/" *.yml
sed -i".bak" -e "s/${VERSION}/unstable/" *.yml

git commit -a -m "misc: working on unstable"

Expand Down

0 comments on commit fee9ca5

Please sign in to comment.