Skip to content

test context

test context #16

# hope
name: Check differences
on:
issue_comment:
types:
- created
jobs:
validate:
runs-on: ubuntu-latest
outputs:
branch_ref: ${{ steps.ref.outputs.sha }}
steps:
- name: "Get PR's branch name"
id: ref
run: |
PR=$(curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" ${{ github.event.issue.pull_request.url }})
echo "sha=$(echo $PR | jq -r '.head.sha')" >> $GITHUB_OUTPUT
echo $PR | jq -r '.head.sha'
echo $PR | jq -r '.head.ref'
- name: 🛎 Checkout repo
uses: actions/checkout@v4
with:
ref: ${{ steps.ref.outputs.sha }}
- name: 📌 Filter changed projects
uses: dorny/paths-filter@v2
with:
base: ${{ steps.ref.outputs.sha }}
filters: |
changes:
- './**'
build:
needs: validate
strategy:
fail-fast: true
uses: ./.github/workflows/deployment.yaml
with:
deplyment_review: ${{ needs.validate.outputs.branch_ref }}
secrets: inherit
test:
needs: validate
strategy:
fail-fast: true
uses: ./.github/workflows/deployment.yaml
secrets: inherit