fix: force CSV file on windows with firefox (excel file type issue) #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Trigger GitLab Pipeline on Merge | |
on: | |
pull_request: | |
types: | |
- closed | |
jobs: | |
deploy: | |
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main' | |
runs-on: ubuntu-latest | |
environment: main | |
steps: | |
- name: Call GitLab API | |
env: | |
GITLAB_API_URL: ${{ secrets.GITLAB_URL}} | |
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }} | |
run: | | |
echo "Triggering GitLab pipeline..." | |
response=$(curl -X POST \ | |
--fail \ | |
-F token=${GITLAB_TOKEN} \ | |
-F ref=main \ | |
"${GITLAB_API_URL}") | |
if [ "$response" -ne 201 ]; then | |
echo "GitLab pipeline trigger failed with status code $response." | |
exit 1 | |
fi | |
echo "GitLab pipeline triggered successfully!" |