Skip to content

Hotfix/rustore crash api 22 #13

Hotfix/rustore crash api 22

Hotfix/rustore crash api 22 #13

name: Distribute PushOk
on:
pull_request:
types: [ closed ]
branches:
- develop
push:
branches:
- 'release/*'
- 'support/*'
jobs:
distribution:
if: github.event.pull_request.merged == true || (github.event_name == 'push' && (startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/support/')))
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Get last 3 commit messages
run: |
commits=$(git log -3 --pretty=format:"%s")
echo "commits=$commits" >> $GITHUB_ENV
- name: Trigger build & send to FAD
run: |
curl --location 'https://mindbox.gitlab.yandexcloud.net/api/v4/projects/900/trigger/pipeline' \
--form 'token="${{ secrets.GITLAB_TRIGGER_TOKEN }}"' \
--form 'ref="develop"' \
--form "variables[INPUT_BRANCH]=\"${{ github.head_ref || github.ref_name }}\"" \
--form "variables[INPUT_COMMITS]=\"${{ env.commits }}\""