Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

170 Call Gitlab CI job to Automate Runtime Release #430

Merged
merged 27 commits into from
Jun 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# This action triggers a GitLab CI job that performs the following:
# * Srtool Check
# * Subwasm info of the compressed wasm file
# * Propose a Parachain Upgrade
# * Generate Release Notes
name: Release and Propose an Upgrade

on:
pull_request:
types:
- closed
branches:
- 'main'

jobs:
release_check:
# This job will only run if:
# * the pull request is closed and merged to main branch;
# * the pull request has the "release:" in its title
if: ${{ github.event.pull_request.merged == true && contains(github.event.pull_request.title, 'release:') }}
ebma marked this conversation as resolved.
Show resolved Hide resolved
name: ${{ matrix.chain }} need new release
strategy:
fail-fast: true
matrix:
chain: ["AMPLITUDE", "PENDULUM"]
# The job will run for Amplitude IF the pull request has the "amplitude" in its title
shouldReleaseAmp:
- ${{ contains(github.event.pull_request.title, 'amplitude') }}
# The job will run for Pendulum IF the pull request has the "pendulum" in its title
shouldReleasePen:
- ${{ contains(github.event.pull_request.title, 'pendulum') }}
exclude:
- shouldReleaseAmp: false
ebma marked this conversation as resolved.
Show resolved Hide resolved
chain: "AMPLITUDE"
- shouldReleasePen: false
chain: "PENDULUM"
runs-on: ubuntu-latest

steps:
- name: trigger gitlab
uses: eic/trigger-gitlab-ci@v1
with:
url: https://gitlab.com
project_id: 56492543
token: ${{ secrets.GITLABAPI }}
ref_name: main
variables: |
${{ matrix.chain }}=Y
Loading