⚙️ Nightly QA #477
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
name: ⚙️ Nightly QA | |
on: | |
workflow_dispatch: | |
inputs: | |
build_name: | |
description: Name of the build environment | |
type: string | |
default: nightly_qa | |
dev_image: | |
description: Use dev image specific to this branch (if exists) | |
type: boolean | |
default: false | |
schedule: | |
- cron: "0 5 * * *" | |
jobs: | |
test: | |
uses: ./.github/workflows/test_helper.yml | |
secrets: inherit | |
with: | |
image_tag: ${{ (inputs.dev_image == true) && format('dev-{0}', github.head_ref || github.ref_name) || 'latest' }} | |
build: | |
uses: ./.github/workflows/build.yml | |
secrets: inherit | |
with: | |
dataset_name: all | |
build_note: nightly qa | |
recipe_file: recipe | |
dev_image: ${{ inputs.dev_image || 'false' }} | |
build_name: ${{ inputs.build_name || 'nightly_qa' }} | |
create_issue_on_failure: | |
needs: [test, build] | |
runs-on: ubuntu-22.04 | |
if: ${{ failure() && (github.event_name == 'schedule') }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
sparse-checkout: .github | |
- name: Create issue on failure | |
uses: JasonEtco/create-an-issue@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
ACTION: ${{ github.workflow }} | |
BUILD_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
with: | |
filename: .github/ISSUE_TEMPLATE/scheduled_action_failure.md | |
update_existing: true |