Skip to content

Commit 18db1e6

Browse files
authored
GITLAB | change worfklow dispatch to gitlab (#140)
* Update trigger-build-app.yml * Update trigger-build-app.yml * Update trigger-build-app.yml * Update trigger-build-app.yml * Update trigger-build-app.yml * Update trigger-build-app.yml * Update trigger-build-app.yml * change project id to prod one
1 parent d6bd79c commit 18db1e6

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/trigger-build-app.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ jobs:
2121
echo "commits=$commits" >> $GITHUB_ENV
2222
2323
- name: Trigger build workflow in flutter-app repo
24-
uses: benc-uk/workflow-dispatch@v1
25-
with:
26-
token: ${{ secrets.PAT_FLUTTER_APP }}
27-
workflow: buildApplicationAfterTrigger.yml
28-
repo: mindbox-cloud/flutter-app
29-
ref: develop
30-
inputs: '{"branch": "${{ github.head_ref }}", "commits": "${{ env.commits }}"}'
24+
run: |
25+
curl --location 'https://mindbox.gitlab.yandexcloud.net/api/v4/projects/1089/trigger/pipeline' \
26+
--form 'token="${{ secrets.GITLAB_TRIGGER_TOKEN }}"' \
27+
--form 'ref="develop"' \
28+
--form "variables[INPUT_BRANCH]=\"${{ github.head_ref }}\"" \
29+
--form "variables[INPUT_COMMITS]=\"${{ env.commits }}\""

0 commit comments

Comments
 (0)