Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

update/build.yaml

Enno Gelhaus520133342ef3
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index f12b7ac38..0005fd728 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -3,7 +3,7 @@ name: Build
on:
push:
- pull_request:
+ pull_request_target:
jobs:
build:
@@ -19,6 +19,14 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
+ ref: ${{ github.event.pull_request.head.sha }}
+ if: always() && github.event_name == 'pull_request'
+
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ if: always() && github.event_name != 'pull_request'
+
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with: