Skip to content
Closed

Pull #221

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
9608629
Create main.yml
goranrad Feb 5, 2025
6e5d147
Create greetings.yml
goranrad Feb 5, 2025
e5bf76f
multi event template
goranrad Feb 5, 2025
ec95428
Add manual trigger workflow and update README with usage instructions
goranrad Feb 6, 2025
0c3b481
Remove obsolete workflow files and add webhook event example
goranrad Feb 6, 2025
99eb7ee
Fix syntax for echo command in webhook.yml
goranrad Feb 6, 2025
1d5f449
Remove obsolete webhook.yml and fix syntax in template; add new condi…
goranrad Feb 6, 2025
e9341af
Update conditional workflow to target the correct repository
goranrad Feb 6, 2025
96cf5ed
Expression function
goranrad Feb 6, 2025
f6c450d
Expression function fix
goranrad Feb 6, 2025
9a66d74
self-hosted runner workflow
goranrad Feb 6, 2025
b29ca45
self-hosted runner
goranrad Feb 10, 2025
c622ca8
self-hosted runner workflow
goranrad Feb 10, 2025
9263457
self hosted testing
goranrad Feb 10, 2025
4b75e65
workflow commands
goranrad Feb 10, 2025
dd7823c
Workflow Commands
goranrad Feb 10, 2025
219e0fa
test commint tabs
goranrad Feb 10, 2025
a117e64
test agin
goranrad Feb 10, 2025
c87ded2
test again:
goranrad Feb 10, 2025
3902bc4
one more time
goranrad Feb 10, 2025
1acd3d0
zappa
goranrad Feb 10, 2025
9ed6f38
Context example
goranrad Feb 10, 2025
13f4474
context test
goranrad Feb 10, 2025
de3fe21
context test selfhosted
goranrad Feb 10, 2025
e836fa6
my context action
goranrad Feb 10, 2025
6748f2c
test with github actor
goranrad Feb 10, 2025
511b3bd
Dependen job
goranrad Feb 10, 2025
acd3d37
without needs
goranrad Feb 10, 2025
0b35e0f
asdfa
goranrad Feb 10, 2025
38b7d28
test
goranrad Feb 10, 2025
fdfc60f
test
goranrad Feb 10, 2025
4bbcc1d
test 02
goranrad Feb 10, 2025
5f93bb8
v3
goranrad Feb 10, 2025
e1b6668
v3
goranrad Feb 10, 2025
38cfa84
ccddcdcd
goranrad Feb 10, 2025
c91183e
sdfdfsdfsdf
goranrad Feb 10, 2025
191ca04
5 five
goranrad Feb 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .github/workflows/custom-action.yml

This file was deleted.

15 changes: 15 additions & 0 deletions .github/workflows/custom_action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
on: [push]

jobs:
hello_world_job:
runs-on: ubuntu-latest
name: A job to say hello
steps:
- name: Hello world action step
id: hello
uses: goranrad/[email protected]
with:
name: 'Brown'
# sssdddhe output sds from the `hello` step
- name: Get the output time
run: echo "The time was ${{ steps.hello.outputs.time }}"
File renamed without changes.
16 changes: 16 additions & 0 deletions github-actions/templates/context.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Context Example

on: [push]

jobs:
my-context:
runs-on: self-hosted
steps:
- name: "My Step"
run: |
echo "Hello! $MY_ACTION"
echo "Hello! $MY_ACTOR"

env:
MY_ACTION: ${{ github.action }}
MY_ACTOR: ${{ github.actor }}
25 changes: 25 additions & 0 deletions github-actions/templates/jobs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "Dependen jobs Example"

on:
push:
branches:
- main

jobs:
job2:
runs-on: self-hosted
needs: job1
steps:
- name: "step 2"
run: |
echo "Say hello $MY_VAL"

job1:
runs-on: self-hosted
steps:
- name: "step 1"
run: |
echo "MY_VAL=hello" >> $GITHUB_ENV
env:
MY_VAL: hello

3 changes: 2 additions & 1 deletion github-actions/templates/runner-self-hosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ jobs:
- name: Check out repository
uses: actions/checkout@v3
- name: Run a one-line script
run: echo "Hello from a self-hosted runner!"
run: echo "Hello from a self-hosted runner!"
- name: Run a multi-line script
4 changes: 2 additions & 2 deletions github-actions/templates/webhook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
respond-to-dispatch:
runs-on: ubuntu-latest
steps:
- name Checkout repo
- name: Checkout repo
uses: actions/checkout@v2
- name: Run a script
run: echo "Event of type: $GITHUB_EVENT_NAME"
run: 'echo "Event of type: $GITHUB_EVENT_NAME"'
25 changes: 25 additions & 0 deletions github-actions/templates/workflow-comand.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "Workflow Commands"

on:
push:
branches:
- main

jobs:
my-job:
runs-on: self-hosted
steps:
- name: "group logging"
run: |
echo "::group::This is a group"
echo "Hello"
echo "World"
echo "::endgroup::"

- name: "step 1"
run: |
echo "MY_VAL=hello" >> $GITHUB_ENV

- name: "step 2"
run: |
echo $My_VAL # This will print "hello"