Skip to content

Commit

Permalink
Cloud Build Fix Try@4
Browse files Browse the repository at this point in the history
  • Loading branch information
rafay-pk committed Apr 9, 2023
1 parent d4cc0d6 commit c1d0502
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/python-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,19 @@ jobs:
# id: extract_commit
# shell: bash
# run: echo "commits=$(( $(git rev-list --count $(git rev-parse --abbrev-ref HEAD)) + 1))" >>$GITHUB_OUTPUT
- name: Create Release Name
id: release_name
shell: powershell
run: echo "release=$(Get-Date -Format "ddMMyy-HHmm")" >> $GITHUB_OUTPUT
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# tag_name: ${{ steps.extract_branch.outputs.branch }}-0.${{ steps.extract_commit.outputs.commits }}
tag_name: ${{ steps.extract_branch.outputs.branch }}-$(Get-Date -Format "ddMMyy-HHmm")
release_name: ${{ steps.extract_branch.outputs.branch }}-0.$(Get-Date -Format "ddMMyy-HHmm")
tag_name: ${{ steps.extract_branch.outputs.branch }}-${{ steps.release_name.outputs.release }}
release_name: ${{ steps.extract_branch.outputs.branch }}-${{ steps.release_name.outputs.release }}
draft: false
prerelease: false
- name: Upload Release Asset
Expand All @@ -65,5 +69,5 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: image-search.zip
asset_name: image-search-${{ steps.extract_branch.outputs.branch }}-0.$(Get-Date -Format "ddMMyy-HHmm").zip
asset_name: image-search-${{ steps.extract_branch.outputs.branch }}-${{ steps.release_name.outputs.release }}.zip
asset_content_type: application/zip

0 comments on commit c1d0502

Please sign in to comment.