Skip to content

nightly

nightly #434

Workflow file for this run

name: nightly
on:
# Run once daily at 4:45 AM UTC.
schedule:
- cron: "45 04 * * */1"
# Allow manually-triggered runs.
workflow_dispatch:
jobs:
build:
uses: ./.github/workflows/build.yml
# Generate a nightly tag if build job succeeds.
tag:
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Get today's date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- name: Create nightly tag
uses: actions/github-script@v7
with:
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "refs/tags/nightly-${{ steps.date.outputs.date }}",
sha: context.sha
})