Skip to content

Conversation

desrosj
Copy link
Member

@desrosj desrosj commented Jul 18, 2025

Proposed changes

Follow up to #176.

Variables defined for Actions re not immediately available within steps. They need to be explicitly passed as environment variables. See the GitHub docs for more information.

This was noticed because the performance cron workflow failed to complete successfully.

Type of Change

Production

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Dependency update
  • Refactoring / housekeeping (changes to files not directly related to functionality)

Development

  • Tests
  • Dependency update
  • Environment update / refactoring
  • Documentation Update

Visual

Checklist

  • I have read the CONTRIBUTING doc
  • I have viewed my change in a web-browser
  • Linting and tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

@desrosj desrosj requested a review from circlecube July 18, 2025 17:05
@desrosj desrosj self-assigned this Jul 18, 2025
@Copilot Copilot AI review requested due to automatic review settings July 18, 2025 17:05
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes an issue where GitHub Actions variables defined using vars context were not accessible within workflow steps. The fix involves explicitly passing these variables as environment variables to make them available during step execution.

  • Adds environment variable mappings for vars context variables in workflow steps
  • Ensures variables like BASE_URL, PLUGIN_NAME, SERVER_USERNAME, SERVER_IP, SERVER_PATH, and SITE_URL are properly accessible
  • Resolves the performance cron workflow failure mentioned in the PR description

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/performance-cron.yml Adds BASE_URL environment variable mapping at job level
.github/workflows/deploy-and-test.yml Adds environment variable mappings for server connection variables and site URL across multiple steps

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@desrosj desrosj merged commit d935b80 into main Jul 18, 2025
50 of 51 checks passed
@desrosj desrosj deleted the fix/vars-not-available branch July 18, 2025 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants