From 8a42756a9bca55f1379cf9fc677287e3c0c63999 Mon Sep 17 00:00:00 2001 From: Barne Kleinen Date: Sun, 30 Jun 2024 12:40:57 +0200 Subject: [PATCH] commit at 12:40:57 --- .github/workflows/only-change-own-project.yml | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/only-change-own-project.yml b/.github/workflows/only-change-own-project.yml index d860af5b..e654ae8f 100644 --- a/.github/workflows/only-change-own-project.yml +++ b/.github/workflows/only-change-own-project.yml @@ -12,9 +12,32 @@ jobs: check-own-folder: runs-on: ubuntu-latest steps: - - run: | + - name: vars + run: | echo "some github variables:" \ echo $GITHUB_REF \ + echo "sha: ${{ github.event.head_commit.sha }}" \ + echo "message: ${{ github.event.head_commit.message }}" \ + echo "pr commit sha: ${{ github.event.pull_request.head.sha }}" \ + echo "pr commit message: ${{ github.event.pull_request.head.message }}" \ + echo "pr commit: ${{ github.event.pull_request.head }}" \ + echo "${{ github.event.head_commit.message }}" \ + echo "${{ github.event.head_commit.message }}" \ + echo "${{ github.event.head_commit.message }}" \ + echo "${{ github.event.head_commit.message }}" \ + echo "${{ github.event.head_commit.message }}" \ + echo "${{ github.event.head_commit.message }}" \ echo "${{ github.event.head_commit.message }}" + - name: "diff commit" + run: | + echo "files changed: " \ + git diff --name-only ${{ github.event.head_commit.sha }} + + - name: "diff pr" + run: | + echo "files changed: " \ + git diff --name-only ${{ github.event.pull_request.head.sha }} + + \ No newline at end of file