Nightly E2E #57
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 E2E | |
on: | |
schedule: | |
# each day | |
- cron: "0 20 * * *" | |
jobs: | |
call_e2e: | |
uses: ./.github/workflows/call-e2e.yaml | |
with: | |
project: "" | |
ref: main | |
secrets: inherit | |
creat_issue: | |
runs-on: ubuntu-latest | |
needs: [call_e2e] | |
if: ${{ always() && needs.call_e2e.result == 'failure' }} | |
steps: | |
- name: echo | |
run: | | |
echo ${{ github.repository }} | |
echo ${{ github.repository_owner }} | |
echo "TIMESTAMP=`date +%Y-%m-%d`" >> $GITHUB_ENV | |
- name: create an issue | |
uses: dacbd/[email protected] | |
with: | |
token: ${{ secrets.WELAN_PAT }} | |
title: "Night CI ${{ ENV.TIMESTAMP }}: Failed" | |
body: | | |
action url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
labels: "kind/bug" | |
assignees: "weizhoublue" |