<p>I'm working in a company that uses Github Actions and Argocd.(using argocd helm chart).
Needless to say that the Github repo is private and argocd is in an internal network that used by the company only.</p>
<p>The flow of what we want to do is that when we deploy the app and the deployment succeeded - Trigger another workflow that will run tests on the deployed environment.
Basically, the deployment will be the trigger for another workflow.</p>
<p>I have been trying to configure webhook from argocd to github but with no success.
What is the best approach to this situation, will be happy to provide more context if needed.</p>
<p>Edit:
The test workflow i'm trying to use workflow_dispatch.</p>
<pre><code>name: workflow_02
on:
  push:
    branches: [ argo-github-trigger ]
  workflow_dispatch:


jobs:
  log-the-inputs:
    runs-on: ubuntu-latest
    steps:
      - run: |
          echo &quot;Worked&quot;
</code></pre>
<p>I'm expecting to see a &quot;Run workflow&quot; button on github but it doesn't appear. On another repo, that I have Admin priviliges and can work on the main branch, I tried the same workflow and it worked.</p>
<p><a href="https://i.stack.imgur.com/qZmmO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qZmmO.png" alt="enter image description here" /></a></p>

DorAmar
<p>The best approach would be to use a <a href="https://argo-cd.readthedocs.io/en/stable/user-guide/resource_hooks/" rel="nofollow noreferrer">post sync hook</a>.</p>
<p>Why is it necessary to run the tests in a GitHub actions workflow? Since the application is already deployed to the cluster, wouldn't it make more sense to run the tests directly on the cluster, instead of going through the trouble of communicating with Github?</p>
