Fix file write in version bump GitHub action
This commit is contained in:
parent
995232dc92
commit
7036404a2b
1 changed files with 2 additions and 2 deletions
4
.github/workflows/version.yml
vendored
4
.github/workflows/version.yml
vendored
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue