Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/migrator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ jobs:
if : ${{ env.CONTINUE == 'true' }}
uses: actions/github-script@v7
with:
github-token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
github-token: "${{ secrets.PYANSYS_CI_BOT_TOKEN }}"
script: |
const prNumber = process.env.PR_NUMBER;
const prHeadBranch = process.env.PR_HEAD_BRANCH;
Expand Down Expand Up @@ -393,7 +393,7 @@ jobs:
debug: true,
head: prBaseBranch, // This is the branch we just created which becomes now the head of the PR, and the base (target) branch is the main branch.
base: 'main',
title: `chore: [migrated PR ${prNumber}] ${originalPR.title}`,
title: `migrated (PR ${prNumber}): ${originalPR.title}`,
body: `This PR is a mirror pull request created from [${originalPR.title}](https://github.com/ansys/pymapdl/pull/${originalPR.number}) to allow the code to access PyMAPDL CICD secrets.

Check the [original PR](https://github.com/ansys/pymapdl/pull/${originalPR.number}) made by @${originalPR.user.login} for more details.
Expand Down Expand Up @@ -444,7 +444,8 @@ jobs:
});

- name: Create comment about failed migration
if: ${{ failure() }}
# Not creating more failure comments if the workflow is retried
if: ${{ failure() && github.run_attempt == 1 }}
uses: actions/github-script@v7
with:
github-token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions doc/changelog.d/4012.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix: migrator secret escaping
Loading