It seems like it should be easy to run a script after Bitrise clones your repo but I can’t seem to get it to work with PHP.
My file is located at /poster.php. It takes 2 command line arg. Tag and API KEY. The API_KEY is stored in a secret.
So i’ve tried:
$BITRISE_SOURCE_DIR/poster.php $BITRISE_GIT_TAG $API_KEY
With config set to:
Execute with / runner binary:
Do anything with script step
#!/usr/bin/php # fail if any commands fails set -e # debug log set -x # write your script here echo "Bitrise... Building..." php $BITRISE_SOURCE_DIR/poster.php $BITRISE_GIT_TAG $API_KEY
php: command not found (Do anything with script step)
file_path: path not exist at: /bitrise/src/poster.php (Script-runner)
Not sure how to get this thing working, any help is appriciated