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

CIRRUS_FORK Environment Variable #419

Closed
fkorotkov opened this issue Aug 13, 2019 · 1 comment
Closed

CIRRUS_FORK Environment Variable #419

fkorotkov opened this issue Aug 13, 2019 · 1 comment
Labels

Comments

@fkorotkov
Copy link
Contributor

It will be nice to have CIRRUS_FORK environment variable which will be set to true for forks and false for the original repository.

Workaround

Right now as suggested by @ped7g in #418 CIRRUS_REPO_OWNER can be used as a workaround:

task:
      name: task requiring decrypted variable
      only_if: $CIRRUS_REPO_OWNER == 'my-organization'
@fkorotkov
Copy link
Contributor Author

Workaround seems good enough to not add additional functionality for a rare case.

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

No branches or pull requests

1 participant