Skip to content

Updatecli

Updatecli #54

Workflow file for this run

---
name: Updatecli
on:
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
# Run once a day
- cron: '0 0 * * *'
jobs:
updatecli:
runs-on: "ubuntu-latest"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 'stable'
- name: Set the value
id: step_one
run: |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
- name: Install Updatecli in the runner
uses: updatecli/updatecli-action@v2
- name: Run golang update
run: "updatecli apply --config .updatecli.d/golang-version.yaml"
env:
ELEMENTAL_BOT_GITHUB_TOKEN: "${{ secrets.ELEMENTAL_BOT_GITHUB_TOKEN }}"
GOPATH: "${{ env.GOPATH }}"