Skip to content
23 changes: 23 additions & 0 deletions .github/workflows/gpavelar-gh-actions-workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: GPAVELAR/C05-ACTIONS01
on:
pull_request:
branches:
- master
paths: 'gpavelar/**'

jobs:
comment:
name: Deploy
runs-on: ubuntu-latest
env:
MY_NAME: ${{ secrets.GPAVELAR_USERNAME }}

steps:
- name: Comment on PR
uses: mshick/add-pr-comment@v1
env:
GITHUB_TOKEN: ${{ secrets.GPAVELAR_PAT }}
with:
message: "Well done ${{ env.MY_NAME }}! This is a nice PR"
repo-token-user-login: 'github-actions[bot]'
allow-repeats: false
32 changes: 32 additions & 0 deletions gpavelar/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# C05-ACTIONS01

## Commands

```yml
# This workflow send a message to PR to change a file under my directory

name: GPAVELAR/C05-ACTIONS01
on:
pull_request:
branches:
- master
paths: 'gpavelar/**'

jobs:
comment:
name: Deploy
runs-on: ubuntu-latest
env:
MY_NAME: ${{ secrets.GPAVELAR_USERNAME }}

steps:
- name: Comment on PR
uses: mshick/add-pr-comment@v1
env:
GITHUB_TOKEN: ${{ secrets.GPAVELAR_PAT }}
with:
message: "Well done ${{ env.MY_NAME }} ! This is a nice PR"
repo-token-user-login: 'github-actions[bot]'
allow-repeats: false

```