Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix variable null chek on GitLab CI/CD #565

Merged
merged 12 commits into from
May 20, 2024

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 mentioned this pull request May 20, 2024
15 tasks
@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
21 checks passed
@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