From 22fe0dc1aebbc5c73a685a78cd95fab9c62c4fe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Fri, 15 Apr 2022 20:38:09 +0100 Subject: [PATCH] require hydra to start the deploy workflow --- .github/workflows/deploy.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 64e23447..f460ed2e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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