Skip to content

refactor: streamline environment variable usage in migrator workflow - #4141

Merged
germa89 merged 7 commits into
mainfrom
ci/replacing-some-env-vars
Aug 5, 2025
Merged

refactor: streamline environment variable usage in migrator workflow#4141
germa89 merged 7 commits into
mainfrom
ci/replacing-some-env-vars

Conversation

@germa89

@germa89 germa89 commented Aug 4, 2025

Copy link
Copy Markdown
Collaborator

Description

As the title.

Issue linked

Internal

Checklist

Copilot AI review requested due to automatic review settings August 4, 2025 17:43
@germa89
germa89 requested a review from a team as a code owner August 4, 2025 17:43
@germa89
germa89 enabled auto-merge (squash) August 4, 2025 17:43
@germa89 germa89 self-assigned this Aug 4, 2025
@germa89
germa89 requested review from a team, MaxJPRey and RobPasMue August 4, 2025 17:44
@github-actions github-actions Bot added CI/CD Related with CICD, Github Actions, etc maintenance General maintenance of the repo (libraries, cicd, etc) enhancement Improve any current implemented feature labels Aug 4, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request refactors the migrator workflow to use environment variables instead of direct GitHub context expressions within JavaScript code blocks. The changes improve consistency and maintainability by centralizing environment variable access patterns throughout the workflow.

Key changes:

  • Replaced inline GitHub context expressions with environment variables in JavaScript script blocks
  • Standardized shell script variable usage to use ${VAR} syntax instead of GitHub expressions
  • Added environment variable definitions at the step level for better organization

Comment thread .github/workflows/migrator.yml
Comment thread .github/workflows/migrator.yml
Comment thread .github/workflows/migrator.yml
Comment thread .github/workflows/migrator.yml
Comment thread .github/workflows/migrator.yml
Comment thread .github/workflows/migrator.yml
Comment thread .github/workflows/migrator.yml
Comment thread .github/workflows/migrator.yml
Comment thread .github/workflows/migrator.yml
@germa89

germa89 commented Aug 4, 2025

Copy link
Copy Markdown
Collaborator Author

@pyansys-ci-bot LGTM

@germa89
germa89 disabled auto-merge August 4, 2025 17:46

@pyansys-ci-bot pyansys-ci-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Approving this PR because germa89 said so in here 😬

LGTM

@germa89

This comment was marked as duplicate.

@codecov

codecov Bot commented Aug 4, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.35%. Comparing base (514cfae) to head (544e4a9).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4141      +/-   ##
==========================================
+ Coverage   91.30%   91.35%   +0.04%     
==========================================
  Files         189      189              
  Lines       15698    15701       +3     
==========================================
+ Hits        14333    14343      +10     
+ Misses       1365     1358       -7     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread .github/workflows/migrator.yml Outdated
Co-authored-by: Revathy Venugopal <104772255+Revathyvenugopal162@users.noreply.github.com>

@MaxJPRey MaxJPRey left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.

Comment thread .github/workflows/migrator.yml Outdated
Comment thread .github/workflows/migrator.yml Outdated
Comment thread .github/workflows/migrator.yml Outdated
Comment thread .github/workflows/migrator.yml Outdated
germa89 and others added 3 commits August 5, 2025 16:25
Co-authored-by: Revathy Venugopal <104772255+Revathyvenugopal162@users.noreply.github.com>
@germa89
germa89 merged commit 3e50af2 into main Aug 5, 2025
23 checks passed
@germa89
germa89 deleted the ci/replacing-some-env-vars branch August 5, 2025 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI/CD Related with CICD, Github Actions, etc enhancement Improve any current implemented feature maintenance General maintenance of the repo (libraries, cicd, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants