Skip to content

Commit

Permalink
Remove input from workflow_dispatch trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
ertrzyiks committed Jul 30, 2023
1 parent 867541f commit b0ef302
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: Release

on:
workflow_dispatch:
inputs:
ref:
description: 'Reference to deploy'
default: 'latest/production'
workflow_call:
inputs:
ref:
Expand Down Expand Up @@ -63,14 +59,11 @@ jobs:
git commit -m 'Update'
git push dokku HEAD:master --force
- name: Create tag
uses: actions/github-script@v6
- uses: rickstaa/action-create-tag@v1
if: inputs.ref && inputs.ref != 'latest/production'
with:
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/latest/production',
sha: '${{ inputs.ref }}'
})
commit_sha: ${{ inputs.ref }}
tag: 'latest/production'
tag_exists_error: false
message: 'Latest production release'
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b0ef302

Please sign in to comment.