Fix file write in version bump GitHub action

This commit is contained in:
Erfan Besharat 2020-12-05 16:52:30 +03:30
parent 995232dc92
commit 7036404a2b

View file

@ -3,7 +3,7 @@ on:
types: [prereleased, released, published] types: [prereleased, released, published]
jobs: jobs:
build: version-bump:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@master
@ -21,7 +21,7 @@ jobs:
- name: Update and Commit files - name: Update and Commit files
if: ${{ env.UPGRADEABLE == "true" }} if: ${{ env.UPGRADEABLE == "true" }}
run: | run: |
echo $(cat ./package.json | jq -r --arg API_TAG "$API_TAG" '.version = $API_TAG') echo $(cat ./package.json | jq -r --arg API_TAG "$API_TAG" '.version = $API_TAG') > package.json
git config --local user.email "actions@shock.network" git config --local user.email "actions@shock.network"
git config --local user.name "Version Update Action" git config --local user.name "Version Update Action"
git commit -m "version upgraded to ${API_TAG}" -a git commit -m "version upgraded to ${API_TAG}" -a