Last active
November 5, 2019 08:15
-
-
Save jayco/38839ce221bb0f3b93d7f7cf11e90544 to your computer and use it in GitHub Desktop.
Repo hooks
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
steps: | |
- label: get meta data | |
env: | |
REPO_NAME: "" | |
commands: | |
- 'echo $$REPO_NAME' |
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
# this will be in your hooks folder - .builkdite/hooks/pre-command | |
set -eu | |
echo '--- grabbing repo name from agent ' | |
export REPO_NAME=$(buildkite-agent meta-data get REPO_NAME) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment