require hydra to start the deploy workflow

This commit is contained in:
Charlotte 🦝 Delenk 2022-04-15 20:38:09 +01:00
parent 2f12e11213
commit 22fe0dc1ae
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -1,19 +1,16 @@
name: Deploy to staging
on:
status
workflow_dispatch:
inputs:
job_name:
description: "Job name that has completed"
required: true
type: string
jobs:
deploy:
name: Deploy to staging
runs-on: ubuntu-latest
steps:
- name: git-checkout
uses: actions/checkout@v2
if: github.event.state == 'success'
- name: Push
uses: ad-m/github-push-action@master
if: github.event.state == 'success'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: staging
force: true
- uses: actions/checkout@v1
- run: git tag -f ${{ inputs.job_name }}
- run: git push --tags