✅CICD Build Status Check #525
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ✅CICD Build Status Check | |
run-name: ✅CICD Build Status Check | |
defaults: | |
run: | |
shell: pwsh | |
on: | |
pull_request: | |
branches: main | |
jobs: | |
cicd_build_status_check: | |
name: CICD Build Status Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Detect Fork | |
id: detect_fork | |
run: | | |
if ("${{ github.event.pull_request.head.repo.full_name }}" -eq "${{ github.event.pull_request.base.repo. full_name }}") { | |
echo "is_not_fork=true" >> $env:GITHUB_OUTPUT; | |
} else { | |
echo "is_not_fork=false" >> $env:GITHUB_OUTPUT; | |
} | |
- uses: actions/checkout@v4 | |
if: steps.detect_fork.outputs.is_not_fork == 'true' | |
- name: Setup Deno (${{ vars.DENO_VERSION }}) | |
if: steps.detect_fork.outputs.is_not_fork == 'true' | |
uses: denoland/setup-deno@v2 | |
with: | |
deno-version: ${{ vars.DENO_VERSION }} | |
- name: Run Build | |
if: steps.detect_fork.outputs.is_not_fork == 'true' | |
run: deno check "./.github/cicd/**/*.ts"; |