Skip to content

Commit

Permalink
conditional stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
vivian-rook committed Feb 15, 2024
1 parent b5f6e68 commit 9e72395
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
Binary file added .github/workflows/.log.yaml.swp
Binary file not shown.
23 changes: 23 additions & 0 deletions .github/workflows/log.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: print log

on: [pull_request]

jobs:
one:
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB: ${{ toJson(github) }}
run: echo "$GITHUB"

- name: print base commit of this branch
run: |
task=$(curl ${{ github.event.pull_request._links.commits.href }})
echo "${task}"
message=$(echo ${task} | jq .[0].commit.message -r)
echo "${message}"
#+ if: "!contains(github.event.head_commit.message, 'skip:build')"

0 comments on commit 9e72395

Please sign in to comment.