Skip to content

Commit

Permalink
attempt with script file
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolshres98 committed Jan 15, 2025
1 parent d4a693c commit 2c6f02b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/create-github-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
- name: Create GitHub release
run: |
echo "Creating GitHub release for tag ${{ github.ref }}"
gh release create @itwin/service-authorization_v1.2.3 /packages/service --verify-tag
# scripts/create-release.sh ${{ github.ref }}
bash scripts/create-release.sh ${{ github.ref }}
env:
GITHUB_TOKEN: ${{ secrets.IMJS_ADMIN_GH_TOKEN }}
14 changes: 14 additions & 0 deletions .github/workflows/scripts/create-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

if [ -z "$1" ]; then
echo "No refName was supplied"
exit 1
fi

refName=$1
echo "Ref name passed in: $refName"

tagName=$(echo $refName | sed 's/refs\/tags\///')
echo "Tag name was parsed as: $tagName"

gh release create $tagName /packages/service --verify-tag

0 comments on commit 2c6f02b

Please sign in to comment.