forked from im-juma-training-sb/gh-abcs-actions
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (43 loc) · 1.34 KB
/
use-custom-actions.yml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: 05-3. Use Custom Actions (JS & Doker)
on:
pull_request:
types: [labeled]
workflow_dispatch:
# Limit the permissions of the GITHUB_TOKEN
permissions:
contents: read
issues: write
jobs:
js-custom-actions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: echo "🎉 Running the JS actions"
- name: hello-action
uses: ./.github/actions/hello-world-js
if: ${{ success() }}
- name: ha-ha
uses: ./.github/actions/joke-action
id: jokes
- name: create-issue
uses: ./.github/actions/issue-maker-js
with:
repo-token: ${{secrets.GITHUB_TOKEN}}
joke: ${{steps.jokes.outputs.joke-output}}
issue-title: "A joke for you from custom actions workflow"
docker-custom-actions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: echo "🎉 Running the Docker actions"
- name: hello-action
uses: ./.github/actions/hello-world-docker
- name: meow
uses: ./.github/actions/cat-facts
id: cat
- name: create-issue
uses: ./.github/actions/issue-maker-docker
with:
repoToken: ${{secrets.GITHUB_TOKEN}}
catFact: ${{steps.cat.outputs.fact}}
issueTitle: "A cat fact for you from ${{ github.repository_owner }}"