Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix action
  • Loading branch information
jdpedrie committed Jan 19, 2021
commit ba4c9db60376bfb71ed665dcbbdc1d06769f794b
11 changes: 4 additions & 7 deletions .github/workflows/asset-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,9 @@ jobs:
name: Get Tag
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}

- uses: octokit/[email protected]
id: getLatestRelease
with:
route: GET /repos/:repository/releases/tags/:tag
repository: ${{ github.repository }}
tag: ${{ steps.tagName.outputs.tag }}
- name: Get release
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down Expand Up @@ -60,7 +57,7 @@ jobs:
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
upload_url: ${{ fromJson(steps.getLatestRelease.outputs.data).upload_url }}
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./google-api-php-client-${{ steps.tagName.outputs.tag }}-PHP${{ matrix.php }}.zip
asset_name: google-api-php-client-${{ steps.tagName.outputs.tag }}-PHP${{ matrix.php }}.zip
asset_content_type: application/zip