Skip to content

Commit

Permalink
Merge pull request #20 from pendulum-chain/101-automation
Browse files Browse the repository at this point in the history
Adding action to call gitlab pipeline
  • Loading branch information
zoveress authored Sep 5, 2024
2 parents be5e110 + 1ef52a1 commit 8128000
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/autodeploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Gitlab Pipeline Executor
run-name: Gitlab Pipeline Executor
on:
push:
branches:
- main
jobs:
Execute-Gitlab-Pipeline:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Triggers Gitlab Pipeline
run: |
ls ${{ github.workspace }}
curl -X POST -F token=${{ secrets.GITLAB_TRIGGER }} -F "ref=development" -F "variables[STARTSTOP]=Y" -F "variables[NODEDOCKERSPTST]=Y" -F "variables[DEPLOY]=Y" https://gitlab.com/api/v4/projects/${{ secrets.PROJECT_ID }}/trigger/pipeline

0 comments on commit 8128000

Please sign in to comment.