diff --git a/.github/workflows/gpavelar-gh-actions-workflow.yaml b/.github/workflows/gpavelar-gh-actions-workflow.yaml new file mode 100644 index 0000000..8e51db6 --- /dev/null +++ b/.github/workflows/gpavelar-gh-actions-workflow.yaml @@ -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 \ No newline at end of file diff --git a/gpavelar/README.md b/gpavelar/README.md new file mode 100644 index 0000000..d2a83e2 --- /dev/null +++ b/gpavelar/README.md @@ -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 + +``` \ No newline at end of file