Skip to content

Commit

Permalink
Merge pull request #8 from ergofriend/fix-bump-version
Browse files Browse the repository at this point in the history
fix bump version ci
  • Loading branch information
ergofriend authored Oct 4, 2024
2 parents 5b7e0f3 + 2187466 commit ba800ba
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,15 @@ jobs:
run: |
pnpm version ${{ github.event.inputs.version }} --no-commit-hooks --no-git-tag-version
echo "VERSION=$(jq -r '.version' package.json)" >> $GITHUB_OUTPUT
- id: repository
run: echo "ENV=${GITHUB_REPOSITORY#${GITHUB_REPOSITORY_OWNER}/}" >> $GITHUB_OUTPUT
- id: branch
run: echo "ENV=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
- name: commit
run: |
gh api graphql \
-F $githubRepository=$GITHUB_REPOSITORY \
-F branchName=$BRANCH \
-F $githubRepository=${{ steps.repository.outputs.ENV }} \
-F branchName=${{ steps.branch.outputs.ENV }} \
-F expectedHeadOid=$(git rev-parse HEAD) \
-F commitMessage=":robot: Bump version to ${{ steps.bump_version.outputs.VERSION }}" \
-F files[][path]="package.json" -F files[][contents]=$(base64 -w0 package.json) \
Expand Down

0 comments on commit ba800ba

Please sign in to comment.