Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
786ed92
Create greetings.yml
tamilselvansellamuthu Sep 6, 2025
c87a6f7
commit and push
tamilselvansellamuthu Sep 6, 2025
45f539e
commit and push
tamilselvansellamuthu Sep 6, 2025
dd2bcc0
commit and push
tamilselvansellamuthu Sep 6, 2025
e3d20ff
multi branch workflow
tamilselvansellamuthu Sep 6, 2025
45ca512
Merge pull request #2 from tamilselvansellamuthu/dev
tamilselvansellamuthu Sep 6, 2025
4c15aac
Update README.md
tamilselvansellamuthu Sep 6, 2025
7083ceb
Merge pull request #3 from tamilselvansellamuthu/dev
tamilselvansellamuthu Sep 6, 2025
671e7e9
Update README.md
tamilselvansellamuthu Sep 6, 2025
8ebb3cd
Delete .github/workflows/multi-event.yml
tamilselvansellamuthu Sep 6, 2025
db8dfcc
manual trigger
tamilselvansellamuthu Sep 6, 2025
4ebb75d
remove manual
tamilselvansellamuthu Sep 6, 2025
ee0f1fb
no manual data
tamilselvansellamuthu Sep 6, 2025
70cc970
webhook.yml
tamilselvansellamuthu Sep 6, 2025
d38469d
conditional
tamilselvansellamuthu Sep 7, 2025
6435878
conditional modified
tamilselvansellamuthu Sep 7, 2025
e97da72
conditional
tamilselvansellamuthu Sep 7, 2025
8e6c8f1
expression function
tamilselvansellamuthu Sep 7, 2025
fde2bf3
expression function modified.
tamilselvansellamuthu Sep 7, 2025
d2d2056
expression updated.
tamilselvansellamuthu Sep 7, 2025
3d043e8
fix expression
tamilselvansellamuthu Sep 7, 2025
5515ad7
fix expression
tamilselvansellamuthu Sep 7, 2025
5262016
runners mac and windows
tamilselvansellamuthu Sep 7, 2025
663b7da
clean up mac windows runners
tamilselvansellamuthu Sep 7, 2025
7013c69
group message fix
tamilselvansellamuthu Sep 7, 2025
fedae04
group messge in workflow commands fix
tamilselvansellamuthu Sep 7, 2025
fd7bac3
fix workflow commands
tamilselvansellamuthu Sep 7, 2025
db12f9b
set and get environment variable
tamilselvansellamuthu Sep 7, 2025
42b48de
context
tamilselvansellamuthu Sep 9, 2025
e011b64
dependent jobs
tamilselvansellamuthu Sep 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.

31 changes: 31 additions & 0 deletions .github/workflows/dependent-jobs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build, Test, and Deploy Workflow

on:
push:
branches:
- main

jobs:
deploy:
needs: [build, test]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Deploy application
run: echo "Deploying to production..."
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build application
run: echo "Building the application..."
test:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Test application
run: echo "Running tests..."
45 changes: 45 additions & 0 deletions github-actions/templates/context.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Context Examples
on: [push]
jobs:
my-context:
runs-on: ubuntu-latest
steps:
- name: "Display job context"
run: |
echo "Job context in JSON: ${{ toJSON(github.job) }}"
echo "Job ref in JSON: ${{ toJSON(github.ref) }}"
echo "Job sha in JSON: ${{ toJSON(github.sha) }}"
- name: "Display runner context"
run: |
echo "Runner OS: ${{ runner.os }}"
echo "Runner Temp Directory: ${{ runner.temp }}"
echo "Runner Tool Cache Directory: ${{ runner.tool_cache }}"
- name: "Display event context"
run: |
echo "Event name: ${{ github.event_name }}"
echo "Event action (if applicable): ${{ github.event.action || 'N/A' }}"
echo "Event repository name: ${{ github.event.repository.name }}"
echo "Event sender login: ${{ github.event.sender.login }}"
- name: "Display workflow context"
run: |
echo "Workflow name: ${{ github.workflow }}"
echo "Workflow run ID: ${{ github.run_id }}"
echo "Workflow run number: ${{ github.run_number }}"
echo "Workflow actor: ${{ github.actor }}"
- name: "Display repository context"
run: |
echo "Repository name: ${{ github.repository }}"
echo "Repository owner: ${{ github.repository_owner }}"
echo "Default branch: ${{ github.ref_name || 'N/A' }}"
- name: "Display commit context"
run: |
echo "Commit SHA: ${{ github.sha }}"
echo "Commit message: ${{ github.event.head_commit.message || 'N/A' }}"
echo "Commit author name: ${{ github.event.head_commit.author.name || 'N/A' }}"
- name: "Set and display environment variable"
run: |
echo "Setting environment variable MY_VAR to 'HelloWorld'"
echo "MY_VAR=HelloWorld" >> $GITHUB_ENV
- name: "Display the environment variable"
run: |
echo "The value of MY_VAR is $MY_VAR"
16 changes: 16 additions & 0 deletions github-actions/templates/greetings copy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Greetings

on: [pull_request_target, issues]

jobs:
greeting:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "Message that will be displayed on users' first issue"
pr-message: "Message that will be displayed on users' first pull request"
20 changes: 20 additions & 0 deletions github-actions/templates/worflow-commands.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "workflow for group message"
on: [push]
jobs:
group-message:
runs-on: ubuntu-latest
steps:
- name: "Group message"
run: |
echo "::group::This is a group message example."
echo "This is a line inside the group."
echo "Job context in JSON: ${{ toJSON(github.job) }}"
echo "Job ref in JSON: ${{ toJSON(github.ref) }}"
echo "Job sha in JSON: ${{ toJSON(github.sha) }}"
echo "Another line inside the group."
echo "You can collapse and expand this section in the logs."
echo "::endgroup::"
- name: "Set environment variable"
run: echo "NAME=GTS" >> $GITHUB_ENV
- name: "Display environment variable"
run: echo "The value of NAME is $NAME"