-
Notifications
You must be signed in to change notification settings - Fork 15
36 lines (30 loc) · 1.11 KB
/
github-dispatches.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Test github-dispatches
on:
push:
paths:
- .github/workflows/github-dispatches.yaml
- github-dispatches/**
pull_request:
paths:
- .github/workflows/github-dispatches.yaml
- github-dispatches/**
# Declare default permissions as read only.
permissions: read-all
jobs:
github-dispatches:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf # v3.1.0
with:
dockerfile: github-dispatches/Dockerfile_build
- name: Switch the action to use the Dockerfile_build
run: |
mv github-dispatches/Dockerfile github-dispatches/Dockerfile_runnable
mv github-dispatches/Dockerfile_build github-dispatches/Dockerfile
- name: github-dispatches
uses: ./github-dispatches
with:
username_token: ${{ secrets.REPO_TOKEN }}
repo_array: '[{"url":"redhat-cop/rego-policies","event_type":"Trigger","client_payload":{"from-action":"github-dispatches"}}]'