From af1992f3724f55efe2f3adf47297ecb5322563fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=B9i=20=C4=90=E1=BB=A9c=20Hi=E1=BB=81n?= <54226198+buihien224@users.noreply.github.com> Date: Sat, 2 Mar 2024 19:34:58 +0700 Subject: [PATCH] Create test.yml --- .github/workflows/test.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..c6f11c8 --- /dev/null +++ b/.github/workflows/test.yml @@ -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"