Skip to content

170 Call Gitlab CI job to Automate Runtime Release #6

170 Call Gitlab CI job to Automate Runtime Release

170 Call Gitlab CI job to Automate Runtime Release #6

Workflow file for this run

# This action triggers a GitLab CI job that performs the following:
# * Srtool Check
# * Subwasm info of the compressed wasm file
# * Generate Release Notes
# * Propose a Parachain Upgrade
name: Release and Propose an Upgrade
#on:
# pull_request:
# types:
# - closed
# branches:
# - 'main'
on:
pull_request:
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:') }}
name: ${{ matrix.chain }} need new release
strategy:
fail-fast: true
matrix:
chain: ["AMPLITUDE"]
# chain: ["AMPLITUDE", "PENDULUM"]
# shouldReleaseAmp:
# - ${{ contains(github.event.pull_request.title, 'amplitude') }}
# shouldReleasePen:
# - ${{ contains(github.event.pull_request.title, 'pendulum') }}
# exclude:
# - shouldReleaseAmp: false
# chain: "AMPLITUDE"
# - shouldReleasePen: false
# chain: "PENDULUM"
runs-on: ubuntu-latest
steps:
- name: Set environment variable
id: set-env
run: |
echo "${{ matrix.chain }}=Y" >> $GITHUB_ENV
- name: Print environment variable
run: |

Check failure on line 49 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release and Propose an Upgrade

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 49, Col: 14): Unexpected symbol: '${{'. Located at position 16 within expression: format('${0}', ${{ matrix.chain
echo "${{ format('${0}', ${{ matrix.chain }} ) }}"
- 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 }}: ${{ format('${0}', steps.string.outputs.uppercase ) }}