Skip to content

Commit

Permalink
Test an action for github-context
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacroldan committed Aug 19, 2024
1 parent 3bc79b0 commit be03fd5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/snapit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: github-context-test

on:
issue_comment:
types:
- created

env:
PNPM_VERSION: '8.15.7'

jobs:
snapit:
name: Snapit
if: ${{ github.event.issue.pull_request && github.event.comment.body == '/snapit' }}
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: |
echo "$GITHUB_CONTEXT"

0 comments on commit be03fd5

Please sign in to comment.