mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-26 22:33:24 +00:00
36 lines
808 B
YAML
36 lines
808 B
YAML
name: Nightly
|
|
on:
|
|
schedule:
|
|
- cron: 0 8 * * 1-5
|
|
workflow_dispatch: {}
|
|
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
trunk_check:
|
|
name: Trunk Check and Upload
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Trunk Check
|
|
uses: trunk-io/trunk-action@v1
|
|
with:
|
|
trunk-token: ${{ secrets.TRUNK_TOKEN }}
|
|
|
|
trunk_upgrade:
|
|
name: Trunk Upgrade (PR)
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write # For trunk to create PRs
|
|
pull-requests: write # For trunk to create PRs
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
# See https://github.com/trunk-io/trunk-action/blob/v1/readme.md#automatic-upgrades
|
|
- name: Trunk Upgrade
|
|
uses: trunk-io/trunk-action/upgrade@v1
|