Skip to content

Commit

Permalink
Merge pull request #97 from sonomirco/dev/mibi/maybe
Browse files Browse the repository at this point in the history
maybe
  • Loading branch information
sonomirco authored Dec 11, 2023
2 parents 1c6fcf2 + 32fa4e2 commit 1af3e3f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/check-for-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,30 @@ jobs:
validate:
runs-on: ubuntu-latest
steps:
- run: echo ${{ github.event.issue.pull_request.headRef }}
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJSON(github.event.issue.pull_request) }}
run: echo "$GITHUB_CONTEXT"

- name: 🛎 Checkout repo
uses: actions/checkout@v3
with:
ref: ${{ github.event.issue.pull_request.headRef }}
ref: ${{ github.event.pull_request.head.sha }}

- name: 📌 Filter changed projects
uses: dorny/paths-filter@v2
id: filter
with:
base: ${{ github.event.issue.pull_request.headRef }}
filters: ''
base: ${{ github.event.pull_request.head.sha }}
filters: |
changes:
- './**'
build:
strategy:
fail-fast: true
uses: ./.github/workflows/deployment.yaml
with:
deplyment_review: ${{ github.event.issue.pull_request.headRef }}
deplyment_review: ${{ github.event.pull_request.head.sha }}
secrets: inherit

test:
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/context.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Check context
on:
workflow_dispatch:
issue_comment:
pull_request:

jobs:
one:
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJSON(github) }}
run: echo "$GITHUB_CONTEXT"

0 comments on commit 1af3e3f

Please sign in to comment.