Updatecli #62
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 }}" |