mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 19:01:08 +00:00
CI: Release - monitor gitlab pipeline (#5460)
* Initial commit of gitlab pipeline monitoring * increase max job time * Improve debug output * s/PR/issue/ Co-authored-by: Benjamin Kampmann <ben@parity.io>
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
---
|
||||
title: Release failure for {{ ref }}
|
||||
---
|
||||
|
||||
Pipeline for release {{ ref }} failed. Please investigate.
|
||||
|
||||
If the pipeline has failed before pushing to crates.io, delete the release tag
|
||||
and fix the release as necessary, retagging after complete. If the pipeline has
|
||||
failed after pushing to crates.io, create a new tag incrementing the version.
|
||||
@@ -0,0 +1,30 @@
|
||||
# A github action to track the status of the gitlab pipeline for tagged
|
||||
# releases, and cancel the release/create a new issue if it fails
|
||||
|
||||
name: Monitor gitlab pipeline status
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- v*
|
||||
- ci-release-*
|
||||
|
||||
jobs:
|
||||
monitor:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Monitor pipeline
|
||||
run: env; ./.maintain/github/check_gitlab_pipeline.sh
|
||||
id: monitor_pipeline
|
||||
env:
|
||||
TAGGER: ${{ github.event.pusher.name }}
|
||||
- name: Create Issue
|
||||
if: failure()
|
||||
uses: JasonEtco/create-an-issue@v2
|
||||
with:
|
||||
filename: .github/ISSUE_TEMPLATE/release.md
|
||||
assignees: ${{ github.event.pusher.name }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in New Issue
Block a user