Skip to content

Update formula

Update formula #33127

Workflow file for this run

name: 'Update formula'
on:
schedule:
- cron: 5 * * * *
jobs:
update:
name: update
runs-on: ubuntu-latest
steps:
- name: Check out code.
uses: actions/checkout@v1
with:
fetch-depth: 3
- name: update
continue-on-error: true
run: |
git checkout main
version=`curl -s https://api.github.com/repos/vdaas/vald-client-clj/releases/latest | jq -r '.tag_name'`
./update.sh ${version}
git config --global user.name "VDaaS org"
git config --global user.email "[email protected]"
git add valdcli.rb
git commit -m ":robot: Update valdcli ${version}"
git remote set-url origin "https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
git push origin main
env:
GITHUB_USER: vdaas-ci
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}