Nightly test #480
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: Daily compatibility check against latest polkadot | |
on: | |
workflow_dispatch: | |
inputs: | |
gitlab_pipeline: | |
description: 'Link to failed pipeline' | |
required: true | |
gitlab_test_job_status: | |
description: 'GitLab test job status' | |
required: true | |
jobs: | |
announce-status: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Announce a status | |
run: echo ${{ inputs.gitlab_test_job_status }} | |
create-an-issue: | |
if: ${{ inputs.gitlab_test_job_status == 'failed' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout staking-miner sources | |
uses: actions/checkout@v4 | |
- name: Create an issue | |
uses: JasonEtco/create-an-issue@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITLAB_PIPELINE_URL: ${{ inputs.gitlab_pipeline }} | |
with: | |
# Use this issue template: | |
filename: .github/issue_templates/nightly_run_failed.md | |
# Update existing issue if found; hopefully will make it clearer | |
# that it is still an issue: | |
update_existing: true | |
# Look for new *open* issues in this search (we want to | |
# create a new one if we only find closed versions): | |
search_existing: open | |
- name: Fail workflow if tests failed | |
run: exit 1 |