Trigger nightly build #607
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This pipeline runs nightly. It updates the recipe to build the latest commit | |
# from "main" in the TileDB-SOMA repo, and force pushes to the branch | |
# "nightly-build", which triggers the feedstock builds on Azure. It also sets | |
# `upload_on_branch` in `conda-forge.yml` to "nightly-build" and rerenders, so the | |
# binaries are uploaded to anaconda.org | |
name: Trigger nightly build | |
on: | |
push: | |
paths: | |
- '.github/workflows/nightly.yml' | |
schedule: | |
- cron: "27 1 * * *" # Every night at 1:27 AM UTC (8:27 PM EST; 9:27 PM EDT) | |
workflow_dispatch: | |
jobs: | |
nightly: | |
runs-on: ubuntu-latest | |
env: | |
TZ: "America/New_York" | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Update recipe source to use Git repo | |
run: bash .github/scripts/nightly/update-recipe.sh | |
- name: Update feedstock | |
run: bash .github/scripts/nightly/update-feedstock.sh | |
- name: Add and commit | |
run: bash .github/scripts/nightly/add-and-commit.sh | |
- name: Install conda-smithy to rerender | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
environment-name: env | |
create-args: conda-smithy | |
cache-environment: true | |
- name: Rerender feedstock | |
shell: bash -el {0} | |
run: | | |
micromamba update --yes conda-smithy | |
conda smithy rerender --no-check-uptodate --commit auto | |
- name: Push update to GitHub | |
if: ${{ github.ref == 'refs/heads/main' && github.repository == 'TileDB-Inc/tiledbsoma-feedstock' && github.event_name != 'pull_request' }} | |
run: git push --force origin HEAD:nightly-build | |
issue: | |
permissions: | |
issues: write | |
runs-on: ubuntu-latest | |
needs: nightly | |
if: ( failure() || cancelled() ) && github.repository_owner == 'TileDB-Inc' && github.event_name == 'schedule' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Open Issue | |
uses: TileDB-Inc/github-actions/open-issue@main | |
with: | |
name: nightly setup | |
label: nightly-setup-failure | |
assignee: johnkerl,jdblischak | |
env: | |
TZ: "America/New_York" |