Skip to content

Adafruit_nRF52_Arduino #870

Adafruit_nRF52_Arduino

Adafruit_nRF52_Arduino #870

name: Adafruit_nRF52_Arduino
on:
workflow_dispatch:
schedule:
- cron: '0 2 * * *'
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: Fetch release version for Adafruit_nRF52_Arduino
run: |
curl -sL https://api.github.com/repos/adafruit/Adafruit_nRF52_Arduino/releases/latest | \
jq -r ".tag_name" > release-versions/Adafruit_nRF52_Arduino-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 - Adafruit_nRF52_Arduino"
git push
build-dh:
needs: get-version
if: ${{ needs.get-version.outputs.modified == 'true' }}
uses: jpconstantineau/Docker_Bluefruit_nRF52/.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_Bluefruit_nRF52/.github/workflows/build-image-ghcr.yml@master