Skip to content

BES_trigger_plantnet_action #867

BES_trigger_plantnet_action

BES_trigger_plantnet_action #867

# create bot action trigger
name: BES_trigger_plantnet_action
on:
# cf. readme
schedule: # 08h30, 11h30, 14h30, 16h30, 17h30 et 20h30 (FR timezone)
# (CET) Standard time (UTC+1)
- cron: '30 7,10,13,15,16,19 * 11-12,1-3 *'
# (CET) Daylight saving time (UTC+2)
- cron: '30 6,9,12,14,15,18 * 4-10 *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
environment: github_actions_bes
steps:
- name: trigger botEnSky PlantNet ACTION
env:
BES_ACTION_TOKEN: ${{ secrets.BES_ACTION_TOKEN }}
BES_ACTION_URL: ${{ secrets.BES_ACTION_URL }}
run: |
curl -q -H "API-TOKEN: ${BES_ACTION_TOKEN}" -H "PLUGIN-NAME: Plantnet" "${BES_ACTION_URL}"