Skip to content

remove unneccess step (#115) #37

remove unneccess step (#115)

remove unneccess step (#115) #37

name: update-signage-version
on:
push:
branches:
- beta/**
jobs:
update-signage-version:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Update signage version
working-directory: signage_version/resource
run: |
version=$(echo ${{ github.ref }} | sed -e "s/.*\/v//")
cat version.json | jq .version=\"$version\" > version.json.temp
mv version.json.temp version.json
- name: Commit and push
run: |
if ! git diff --exit-code --quiet
then
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "Update signage version"
git push
fi