Skip to content

Commit

Permalink
ci: separate
Browse files Browse the repository at this point in the history
  • Loading branch information
acid-chicken committed May 21, 2024
1 parent 8a8839a commit 6938d80
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,11 @@ jobs:
- uses: actions/checkout@v4.1.6
with:
fetch-depth: 0
- run: |
- id: version
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
echo revision=$(git log --oneline | wc -l) > $GITHUB_ENV
- uses: azure/setup-helm@v4.2.0
with:
version: v3.15.0
Expand All @@ -85,9 +87,8 @@ jobs:
- uses: mikefarah/yq@v4.44.1
with:
cmd: |
revision=$(git log --oneline $(git rev-parse --abbrev-ref HEAD) | wc -l)
yq -i ".version += \\"${revision}\\"" charts/hariko/Chart.yaml
yq -i ".version += \\"${revision}\\"" charts/misskey/Chart.yaml
yq -i ".version += \\"${{ steps.version.outputs.revision }}\\"" charts/hariko/Chart.yaml
yq -i ".version += \\"${{ steps.version.outputs.revision }}\\"" charts/misskey/Chart.yaml
yq -i ".image.index = \\"ghcr.io/misskey-dev/0key.dev@${{ needs.docker-hariko.outputs.digest }}\\"" charts/hariko/values.yaml
yq -i ".image.index = \\"ghcr.io/misskey-dev/0key.dev@${{ needs.docker-misskey.outputs.digest }}\\"" charts/misskey/values.yaml
env:
Expand Down

0 comments on commit 6938d80

Please sign in to comment.