Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Mission Specialist Lvl 1
Message 61 of 66

Re: GitHub Actions Manual Trigger / Approvals

Please, really happy with everything but not having this feature really upsetting.

Highlighted
Ground Controller Lvl 2
Message 62 of 66

Re: GitHub Actions Manual Trigger / Approvals

Just to put icing, I agree this will be a useful feature, especially after an outage on Actions which has been happenig recently.

Highlighted
Copilot Lvl 3
Message 63 of 66
Highlighted
Copilot Lvl 3
Message 64 of 66

Re: GitHub Actions Manual Trigger / Approvals

After further digging and testing, there is a workaround that is built in with no additional external modules:

on:
  pull_request_review:
    types: [submitted]
    branches: ['master','dev']
    paths: ['**path/**']

jobs:
  build:
    runs-on: self-hosted
    steps:
      - uses: actions/checkout@v2
      - name: job name
        if: github.event.review.state == 'approved'
run: |
echo "approved" ...

 

Highlighted
Copilot Lvl 3
Message 65 of 66

Re: GitHub Actions Manual Trigger / Approvals

After further digging and testing, there is a workaround that is built in with no additional external modules:

on:
  pull_request_review:
    types: [submitted]
    branches: ['master','dev']
    paths: ['**path/**']

jobs:
  build:
    runs-on: self-hosted
    steps:
      - uses: actions/checkout@v2
      - name: job name
        if: github.event.review.state == 'approved'
run: |
echo "approved" ...

 

Highlighted
Ground Controller Lvl 2
Message 66 of 66

Re: GitHub Actions Manual Trigger / Approvals

Hi, we've implemented build feature with approvals using Reliza Hub (I know it's an external tool, but supports full approval CICD workflow using GitHub Actions, and it's free until the end of 2020 and then has free tier for up to 2 team members). Here is my write-up on this: https://worklifenotes.com/2020/05/20/on-demand-builds-on-github-actions-with-reliza/

 

And first part of the story (when we were using cron instead of on-demand builds): https://itnext.io/building-kubernetes-cicd-pipeline-with-github-actions-argocd-and-reliza-hub-e7120b...

Would appreciate any feedback, and would be willing to help with implementing this.