Skip to content

Commit

Permalink
chore: test why secrets are not being passed in
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 committed Feb 24, 2024
1 parent f43ee13 commit bb0e66c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build & Deploy

on:
push:
pull_request:
pull_request_target: # Changed from pull_request to pull_request_target
workflow_dispatch:

permissions:
Expand All @@ -15,8 +15,13 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v4
# with:
# submodules: "recursive" # Ensures submodules are checked out
with:
ref: ${{ github.event.pull_request.base.ref }} # Check out the base branch, not the PR

- name: Fetch PR code
run: |
git fetch origin ${{ github.event.pull_request.head.sha }}
git checkout FETCH_HEAD
- name: Set up Node.js
uses: actions/setup-node@v4
Expand All @@ -41,12 +46,9 @@ jobs:
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}

- name: Deploy to Cloudflare
if: env.skip != 'true'
uses: ubiquity/cloudflare-deploy-action@main
with:
repository: ${{ github.repository }}
production_branch: ${{ github.event.repository.default_branch }}
output_directory: "static"
current_branch: ${{ github.ref_name }}
pull_request_number: ${{ github.event.pull_request.number }}
commit_sha: ${{ github.event.pull_request.head.sha }}
current_branch: ${{ github.ref_name }}

0 comments on commit bb0e66c

Please sign in to comment.