Skip to content

Commit

Permalink
ci: bash compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
acid-chicken committed May 21, 2024
1 parent 79e2a24 commit 4b943da
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,14 @@ jobs:
- uses: Homebrew/actions/setup-homebrew@master
- run: |
cd misskey
(brew install jaq; cd misskey; jaq --in-place ".version += \"-${${"$(git -P log --color=never --pretty=format:%d.%H | head -n1)":10}/,*)/}\"" package.json)
(
brew install jaq;
cd misskey;
version=$(git -P log --color=never --pretty=format:%d.%H | head -n1);
version=${version:10};
version=${version/,*)/};
jaq --in-place ".version += \"-$version" package.json
)
docker build -t "ghcr.io/misskey-dev/0key.dev:$GITHUB_REF_NAME-misskey" .
docker push "ghcr.io/misskey-dev/0key.dev:$GITHUB_REF_NAME-misskey"
env:
Expand Down

0 comments on commit 4b943da

Please sign in to comment.