fix - deploy release with a commit hash

This commit is contained in:
Ishaan Jaff 2024-04-05 17:21:42 -07:00
parent 7fdb4e356a
commit 6f6c2d2648

View file

@ -242,11 +242,13 @@ jobs:
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
script: |
const commitHash = "${{ github.event.inputs.commit_hash}}";
console.log("Commit Hash:", commitHash); // Add this line for debugging
try {
const response = await github.rest.repos.createRelease({
draft: false,
generate_release_notes: true,
target_commitish: ${{ github.event.inputs.commit_hash}},
target_commitish: commitHash,
name: process.env.RELEASE_TAG,
owner: context.repo.owner,
prerelease: false,