Skip to content

Commit

Permalink
fix: nightly workflow runner links and run logic (#460)
Browse files Browse the repository at this point in the history
* feat: use env var to link run

* fix: use github env vars

* chore: remove useless echo

* fix: #452

* chore: remove debug
  • Loading branch information
PoisonPhang committed Aug 9, 2023
1 parent b52882c commit 9829211
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/templates/nightly-issue-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ title: Nightly failure {{ date | date('dddd, MMMM Do YYYY, h:mm:ss a') }}
labels: bug, nightly
---

Nightly build failure on {{ tools.context.sha }}
Nightly build failure on {{ env.RUN_URL }}
3 changes: 2 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ jobs:
issues: write
needs: [ build ]
# only create an issue if it failed in a scheduled run
if: github.event_name == "schedule" && failure()
if: github.event_name == 'schedule' && failure()
steps:
- uses: actions/checkout@v3
- 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

0 comments on commit 9829211

Please sign in to comment.