- Needs: >= v3.3
- Image: crenshawdotdev/github-executor-plugin:latest
This is an Argo Workflows executor plugin for interacting with GitHub.
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: github-example-
spec:
entrypoint: main
templates:
- name: main
plugin:
github:
# Use `issue` to create comments for PRs - the GitHub API considers PRs to be issues.
issue:
comment:
body: "Hello, world!"
number: "1" # PR number, from the
owner: crenshaw-dev
repo: github-executor-plugin
See GitHub's instructions to set up your token.
Then create a secret using that token.
# First, copy your token to the clipboard.
pbpaste > token
kubectl create secret generic github-token --from-file=token -n argo
rm token
Install:
kubectl apply -f github-executor-plugin-configmap.yaml
Uninstall:
kubectl delete cm github-executor-plugin