-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (39 loc) · 1.55 KB
/
arduino-cli.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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