Closed ataylorme closed 7 years ago
The code inside if (!isset($_ENV['PANTHEON_ENVIRONMENT'])) { is running on the build assets commit.
@greg-1-anderson I'm not sure why this is. I'm also not sure why sniffing for github-secrets.json
works since it's not created until after deploy assets.
Updated to remove debug code and return
if PANTHEON_ENVIRONMENT
is not set. Workflow succeeds now.
------ Operation: Push changes back to GitHub if needed finished in 3s (pr-issue-4) ------
Enter push-back-to-github. Repository root is /srv/bindings/ff52046a1cc14d589e1c5ec259b11b70/code.
::::::::::::::::: Build Metadata :::::::::::::::::
array (
'url' => 'git@github.com:pantheon-systems/example-wordpress-composer.git',
'ref' => 'issue-4-quicksilver-pushback',
'sha' => 'a32c7ae8960cc3620c8fad55d2a2797cd100ca72',
'comment' => 'Testing issue-4-missing-secrets-file branch of Quicksilver Pushback',
'commit-date' => '2017-07-22 07:31:36 -0400',
'build-date' => '2017-07-22 14:25:51 +0000',
)
Ignoring commit because it contains build assets.
The entire if (!isset($_ENV['PANTHEON_ENVIRONMENT'])) { block is debug code.
Are you actively using the debugging? If not I'd rather just remove it.
@greg-1-anderson ready for re-review
See #4. The code inside
if (!isset($_ENV['PANTHEON_ENVIRONMENT'])) {
is running on the build assets commit.Attempting to load the GitHub secrets file from Pantheon if the
GITHUB_TOKEN
environment variable does not exist fixes the issue.Full workflow watch output below
========================= Updates in this PR deployed =========================