Skip to content

Conversation

huxuan
Copy link
Member

@huxuan huxuan commented May 20, 2024

The varialbe check on GitLab CI/CD is quite strange:

When assign $PAT to $GITLAB_TOKEN and $PAT is NEVER configured:

  1. $GITLAB_TOKEN != null: the job will be triggered.
  2. $GITALB_TOKEN != "": the job will be triggered.
  3. $PAT != null, the job will NOT be triggered.
  4. $PAT != "", the job will be triggered.

In conclusion, we have to $PAT != null to avoid unexpected job run.

Some related reference:

@huxuan huxuan force-pushed the xuan.hu/gitlab-ci-fix branch from da321bb to e8fa2ba Compare May 20, 2024 00:37
@huxuan huxuan mentioned this pull request May 20, 2024
15 tasks
@huxuan huxuan force-pushed the xuan.hu/gitlab-ci-fix branch from 1ea4a7a to 45e0f45 Compare May 20, 2024 00:58
@huxuan huxuan marked this pull request as ready for review May 20, 2024 02:20
@huxuan huxuan requested a review from msclock May 20, 2024 02:20
@huxuan huxuan enabled auto-merge (squash) May 20, 2024 08:57
@huxuan huxuan merged commit e7fadb9 into serious-scaffold:main May 20, 2024
@huxuan huxuan deleted the xuan.hu/gitlab-ci-fix branch May 20, 2024 09:35
@serious-scaffold
Copy link
Contributor

🎉 This PR is included in version 0.0.52 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants