Skip to content

Commit

Permalink
Merge pull request #41 from mautic/actions/test-delete-flow
Browse files Browse the repository at this point in the history
Add attribution
  • Loading branch information
nick-vanpraet authored Oct 30, 2024
2 parents 0f51699 + 9838180 commit f5b8044
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/mirror.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ echo "Triggering git reference: ${GITHUB_REF}"
echo "Triggering git reference for push events: ${GH_REF}"
echo "Triggering git reference type: ${GH_REF_TYPE}"


function git-setup() {
printf -v url "https://%s:%s@%s" \
"${GITLAB_USERNAME}" \
Expand All @@ -18,6 +17,7 @@ function git-setup() {
set -x
}

# @see https://github.com/xometry/gitlab-mirror-action/tree/master
if test "$GITHUB_EVENT_NAME" == "create"; then
# Do nothing. Every "create" event *also* publishes a *push* event, even tags/branches created from github UI.
# Duplicate events would race and sometimes cause spurious errors.
Expand Down
8 changes: 4 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ deploy_to_qa_1:
- >-
curl
--url 'https://admin.platform.dropsolid.com/project/mauticorg/environment/qa1/action.build?_format=json'
--data '{"branch":"'"${CI_COMMIT_REF_NAME}"'", "plugin_id": "git_reference"}'
--data '{"git_reference":"'"${CI_COMMIT_REF_NAME}"'", "plugin_id": "git_reference", "run_after_sync_tasks": true}'
--header 'Content-type:application/json'
--header "Authorization:Bearer ${GITLAB_API_TOKEN}"
only:
Expand All @@ -37,7 +37,7 @@ deploy_to_qa_2:
- >-
curl
--url 'https://admin.platform.dropsolid.com/project/mauticorg/environment/qa2/action.build?_format=json'
--data '{"branch":"'"${CI_COMMIT_REF_NAME}"'", "plugin_id": "git_reference"}'
--data '{"git_reference":"'"${CI_COMMIT_REF_NAME}"'", "plugin_id": "git_reference", "run_after_sync_tasks": true}'
--header 'Content-type:application/json'
--header "Authorization:Bearer ${GITLAB_API_TOKEN}"
only:
Expand All @@ -58,7 +58,7 @@ deploy_to_qa_3:
- >-
curl
--url 'https://admin.platform.dropsolid.com/project/mauticorg/environment/qa3/action.build?_format=json'
--data '{"branch":"'"${CI_COMMIT_REF_NAME}"'", "plugin_id": "git_reference"}'
--data '{"git_reference":"'"${CI_COMMIT_REF_NAME}"'", "plugin_id": "git_reference", "run_after_sync_tasks": true}'
--header 'Content-type:application/json'
--header "Authorization:Bearer ${GITLAB_API_TOKEN}"
only:
Expand All @@ -79,7 +79,7 @@ deploy_to_qa_4:
- >-
curl
--url 'https://admin.platform.dropsolid.com/project/mauticorg/environment/qa4/action.build?_format=json'
--data '{"branch":"'"${CI_COMMIT_REF_NAME}"'", "plugin_id": "git_reference"}'
--data '{"git_reference":"'"${CI_COMMIT_REF_NAME}"'", "plugin_id": "git_reference", "run_after_sync_tasks": true}'
--header 'Content-type:application/json'
--header "Authorization:Bearer ${GITLAB_API_TOKEN}"
only:
Expand Down

0 comments on commit f5b8044

Please sign in to comment.