Skip to content

Commit

Permalink
Edit ref to branch to deploy and project name
Browse files Browse the repository at this point in the history
  • Loading branch information
leihuayi committed Sep 21, 2023
1 parent 103172e commit 48c4d64
Showing 1 changed file with 20 additions and 21 deletions.
41 changes: 20 additions & 21 deletions .github/workflows/dso-automatic-sync.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
name: Sync DSO gitlab repository

on:
workflow_dispatch:
push:
branches:
- feature/adapt-infra-for-dso-env

jobs:
sync:
runs-on: ubuntu-latest
steps:
- run: |
curl "https://gitlab.apps.c6.numerique-interieur.com/api/v4/projects/62/trigger/pipeline" \
-X POST \
--fail \
-F token=${{ secrets.DSO_TOKEN }} \
-F ref=main \
-F variables[GIT_BRANCH_DEPLOY]=${{ github.GITHUB_REF_NAME }} \
-F variables[PROJECT_NAME]=basegun-test/infra
name: Sync DSO gitlab repository

on:
workflow_dispatch:
push:
branches:
- feature/adapt-infra-for-dso-env

jobs:
sync:
runs-on: ubuntu-latest
steps:
- run: |
curl "https://gitlab.apps.c6.numerique-interieur.com/api/v4/projects/62/trigger/pipeline" \
-X POST \
--fail \
-F token=${{ secrets.DSO_TOKEN }} \
-F ref=main \
-F variables[GIT_BRANCH_DEPLOY]=${{ github.ref_name }} \
-F variables[PROJECT_NAME]=infra

0 comments on commit 48c4d64

Please sign in to comment.