From 642a01ed8359f751475f89b6f488f632872989e3 Mon Sep 17 00:00:00 2001 From: Thibault Lengagne Date: Wed, 11 Dec 2024 11:40:13 +0100 Subject: [PATCH] feat: Add workflows Signed-off-by: Thibault Lengagne --- .github/workflows/pull_request.yaml | 24 ++++++++++++++++++++++ .github/workflows/pull_request_target.yaml | 23 +++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 .github/workflows/pull_request.yaml create mode 100644 .github/workflows/pull_request_target.yaml diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml new file mode 100644 index 0000000..c23264b --- /dev/null +++ b/.github/workflows/pull_request.yaml @@ -0,0 +1,24 @@ +name: pull-request + +on: + pull_request: + +permissions: + contents: read # This is required for actions/checkout + id-token: write + +env: + AWS_REGION: "us-east-1" + + +jobs: + job-1: + name: Pull request jobs + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + + - name: Print PR Title + run: echo "Pull Request Title is ${{ github.event.pull_request.title }}" \ No newline at end of file diff --git a/.github/workflows/pull_request_target.yaml b/.github/workflows/pull_request_target.yaml new file mode 100644 index 0000000..1c1fa28 --- /dev/null +++ b/.github/workflows/pull_request_target.yaml @@ -0,0 +1,23 @@ +name: pull-request-target + +on: + pull_request_target: + types: [opened, synchronize] + +permissions: + contents: read # This is required for actions/checkout + id-token: write + +env: + AWS_REGION: "us-east-1" +jobs: + job-1: + name: Pull request target jobs + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + + - name: Print PR Title + run: echo "Pull Request Title is ${{ github.event.pull_request.title }}" \ No newline at end of file