This repository has been archived by the owner on Aug 12, 2024. It is now read-only.
Nightly CI run #266
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 CI run | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
issues: write | |
pull-requests: write | |
jobs: | |
ci: | |
runs-on: self-hosted | |
env: | |
CI: true | |
outputs: | |
results: ${{ steps.ci.outputs.results }} | |
container: node:16.20.0-bullseye | |
steps: | |
- uses: actions/checkout@v1 | |
- id: ci | |
uses: ./.github/actions/ci | |
create_issue: | |
if: contains(needs.ci.outputs.results, 'failing') | |
runs-on: ubuntu-latest | |
needs: ci | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Create an issue | |
uses: JasonEtco/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BODY: ${{ needs.ci.outputs.results }} | |
with: | |
filename: .github/ISSUE_TEMPLATE_NIGHLY_TESTS.md | |
search_existing: all | |
update_existing: true | |
- name: Fail | |
run: exit 1 |