Skip to content

Commit

Permalink
chore(misc): remove double quotes other step
Browse files Browse the repository at this point in the history
  • Loading branch information
mandarini committed Mar 4, 2024
1 parent 12acf24 commit ee7c687
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,8 @@ jobs:
repo: context.repo.repo,
pull_number: ${{ github.event.inputs.pr }},
});
const branchRef = pr.data.head.ref.replace(/"/g, ''); // Remove double quotes
console.log(`Fetched PR branch name: ${branchRef}`);
return branchRef;
console.log(`Fetched PR details: ${pr.data.head.ref}`);
return pr.data.head.ref;
- name: Generate version string for PR release
if: github.event.inputs.pr
Expand All @@ -130,9 +129,6 @@ jobs:
const prMatch = prInput.match(/^\d+$/);
let prReleaseVersion = '';
const prDetails = '${{ steps.pr_details.outputs.result }}';
console.log(`PR details: ${prDetails}`);
if (prMatch) {
// prInput is valid (consists only of digits after potentially removing a leading hash)
Expand All @@ -146,9 +142,17 @@ jobs:
core.setOutput('pr_release_version', prReleaseVersion);
- name: Set Clean Branch Name
if: github.event.inputs.pr
run: echo "CLEAN_BRANCH_NAME=${{ steps.pr_details.outputs.result }}" | sed 's/"//g' >> $GITHUB_ENV

- uses: actions/checkout@v4
with:
ref: ${{ steps.pr_details.outputs.result }}
ref: ${{ env.CLEAN_BRANCH_NAME }}

# - uses: actions/checkout@v4
# with:
# ref: ${{ steps.pr_details.outputs.result }}

- uses: pnpm/action-setup@v2
with:
Expand Down

0 comments on commit ee7c687

Please sign in to comment.