name: Nightly on: workflow_dispatch: workflow_call: jobs: build: uses: ./.github/workflows/e2e.yml secrets: nixbuild_token: ${{ secrets.nixbuild_token }} gh_token: ${{ secrets.GITHUB_TOKEN }} org_token: ${{ secrets.UNION_ORG_PAT }} create-issue: runs-on: ubuntu-latest permissions: contents: read issues: write needs: [build] # only create an issue if it failed in a scheduled run if: github.event_name == 'schedule' && failure() steps: - uses: actions/checkout@v4 - uses: JasonEtco/create-an-issue@v2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} with: filename: .github/templates/nightly-issue-template.md