Skip to content

Commit

Permalink
[tag action]: Handle client payload params (MystenLabs#4508)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebmifa authored Sep 7, 2022
1 parent cd402d1 commit eb8c60f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ on:
type: string
required: true

env:
SUI_COMMIT: "${{ github.event.client_payload.sui_commit || github.event.inputs.sui_commit }}"
TAG_NAME: "${{ github.event.client_payload.tag_name || github.event.inputs.tag_name }}"

jobs:
tag:
name: Tag
Expand All @@ -37,8 +41,8 @@ jobs:
- name: Tag
uses: julbme/gh-action-manage-tag@v1
with:
name: ${{ inputs.tag_name }}
name: ${{ env.TAG_NAME }}
state: present
from: ${{ inputs.sui_commit }}
from: ${{ env.SUI_COMMIT }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit eb8c60f

Please sign in to comment.