Skip to content

Daje

Daje #11

# hope
name: Check differences
on:
issue_comment:
types:
- created
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJSON(github.event.issue.pull_request.url) }}
run: echo "$GITHUB_CONTEXT"
- 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=$(PR | jq -r '.head.sha)" >> $GITHUB_OUTPUT
echo $(PR | jq -r '.head.sha)'
- name: 🛎 Checkout repo
uses: actions/checkout@v3
with:
ref: ${{ steps.ref.outputs.sha }}
- name: 📌 Filter changed projects
uses: dorny/paths-filter@v2
with:
base: ${{ steps.ref.outputs.sha }}
filters: |
changes:
- './**'
build:
strategy:
fail-fast: true
uses: ./.github/workflows/deployment.yaml
with:
deplyment_review: ${{ steps.ref.outputs.sha }}

Check failure on line 43 in .github/workflows/check-for-changes.yml

View workflow run for this annotation

GitHub Actions / Check differences

Invalid workflow file

The workflow is not valid. .github/workflows/check-for-changes.yml (Line: 43, Col: 25): Unrecognized named-value: 'steps'. Located at position 1 within expression: steps.ref.outputs.sha
secrets: inherit
test:
strategy:
fail-fast: true
uses: ./.github/workflows/deployment.yaml
secrets: inherit