Skip to content

Commit

Permalink
[ci] Enhancement: Demo GitHubActions
Browse files Browse the repository at this point in the history
  • Loading branch information
ppenna committed Mar 20, 2024
1 parent c5f7b86 commit e3371dd
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

name: Demo

on:
pull_request:
types: [opened, synchronize]

jobs:
comment:
runs-on: ubuntu-latest
steps:
- name: View context attributes
uses: actions/github-script@v7
with:
script: console.log(context)
- name: Post Comment
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '👋 Thanks for reporting!'
})

0 comments on commit e3371dd

Please sign in to comment.