2023-01-17 06:35:26 +00:00
|
|
|
name: Nightly
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: 0 8 * * 1-5
|
|
|
|
workflow_dispatch: {}
|
|
|
|
|
2025-02-19 12:14:46 +00:00
|
|
|
permissions: read-all
|
|
|
|
|
2023-01-17 06:35:26 +00:00
|
|
|
jobs:
|
|
|
|
trunk_check:
|
2025-02-19 12:14:46 +00:00
|
|
|
name: Trunk Check and Upload
|
2023-01-17 06:35:26 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-05-13 08:47:40 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-01-17 06:35:26 +00:00
|
|
|
|
|
|
|
- name: Trunk Check
|
2025-02-19 12:14:46 +00:00
|
|
|
uses: trunk-io/trunk-action@v1
|
2023-01-17 06:35:26 +00:00
|
|
|
with:
|
|
|
|
trunk-token: ${{ secrets.TRUNK_TOKEN }}
|
2025-02-19 12:14:46 +00:00
|
|
|
|
|
|
|
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
|