Skip to content

Commit

Permalink
Set the secret as an environment variable in the workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
lmoellendorf committed Feb 15, 2024
1 parent 7e14b40 commit fa33d28
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/trigger-gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ on: [push]

jobs:
trigger-gitlab-ci:
runs-on: ubuntu-latest
steps:
- name: Trigger CI
run: curl -X POST --fail -F token=${{ secrets.trigger_gitlab_ci }} -F ref=main https://gitlab.com/api/v4/projects/54782732/trigger/pipeline
runs-on: ubuntu-latest
steps:
- name: Trigger CI
env:
TRIGGER_GITLAB_CI: ${{ secrets.trigger_gitlab_ci }}
run: curl -X POST --fail -F token=${{ TRIGGER_GITLAB_CI }} -F ref=main https://gitlab.com/api/v4/projects/54782732/trigger/pipeline

0 comments on commit fa33d28

Please sign in to comment.