Skip to content

Commit

Permalink
Create test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
buihien224 authored Mar 2, 2024
1 parent 43caa1c commit af1992f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Get Last Commit Name

on:
push:
branches:
- main

jobs:
get_commit_name:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Get last commit name
run: |
COMMIT_NAME=$(git log -1 --pretty=format:"%s")
echo "Last commit name: $COMMIT_NAME"

0 comments on commit af1992f

Please sign in to comment.