Skip to content

Commit

Permalink
replace dots in the branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Sep 16, 2024
1 parent b2658ca commit 71e6fb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,10 @@ jobs:
if: github.event_name == 'pull_request'
with:
script: |
const branchName = process.env.BRANCH_NAME.replace(/\./g, '-');
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '✨ deployed to ${{ steps.wrangler-deploy.outputs.deployment-url }} and https://${{ env.BRANCH_NAME }}.learn-srlinux.pages.dev>'
body: `✨ deployed to ${{ steps.wrangler-deploy.outputs.deployment-url }} and https://${branchName}.learn-srlinux.pages.dev`
})

0 comments on commit 71e6fb4

Please sign in to comment.