Skip to content

arduino-cli

arduino-cli #932

Workflow file for this run

name: arduino-cli
on:
workflow_dispatch:
schedule:
- cron: '0 1 * * *'
jobs:
get-version:
runs-on: ubuntu-latest
outputs:
modified: ${{steps.git-check.outputs.modified}}
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Fetch release version for arduino-cli
run: |
curl -sL https://api.github.com/repos/arduino/arduino-cli/releases/latest | \
jq -r ".tag_name" > release-versions/arduino-cli-latest.txt
- name: Check for modified files
id: git-check
run: echo ::set-output name=modified::$([ -z "`git status --porcelain`" ] && echo "false" || echo "true")
- name: Commit latest release version
if: steps.git-check.outputs.modified == 'true'
run: |
git config --global user.name 'Pierre Constantineau'
git config --global user.email '[email protected]'
git commit -am "New release version - arduino-cli"
git push
build-dh:
needs: get-version
if: ${{ needs.get-version.outputs.modified == 'true' }}
uses: jpconstantineau/Docker_Arduino_CLI/.github/workflows/build-image-dh.yml@master
secrets:
DOCKER_HUB_ACCESS_TOKEN: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
DOCKER_HUB_USER: ${{ secrets.DOCKER_HUB_USER }}
build-ghcr:
needs: get-version
if: ${{ needs.get-version.outputs.modified == 'true' }}
uses: jpconstantineau/Docker_Arduino_CLI/.github/workflows/build-image-ghcr.yml@master