Skip to content

Commit

Permalink
demo5 (#8)
Browse files Browse the repository at this point in the history
* demo5

* sdasdasd

* asdasd

* asdasdasd

* asdasdasd2134

* asdasd213123

* asdsadas23123

* 111111

* 12312312

* asdasdas123

* asdasda2

* asdsad

* asdasd231123

* check1
  • Loading branch information
EliMoshkovich authored Apr 15, 2024
1 parent aa0bb84 commit 0fc4ab8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/merging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ on:

env:
PROJECT_ID: 538e459351a847058fe28f1e6679b87b #Demo project id (under 'Permit.io Tests' workspace), project Demo
PR_LABEL: authz

jobs:
demo-merging:
if: ${{ github.event.pull_request.merged == true && github.event.label.name == env.PR_LABEL }}
if: ${{ github.event.pull_request.merged == true && contains( github.event.pull_request.labels.*.name, 'authz') }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/new-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@ name: demo-new-env

on:
pull_request:
types: [labeled]
types: [opened]

env:
PROJECT_ID: 538e459351a847058fe28f1e6679b87b #Demo project id (under 'Permit.io Tests' workspace), project Demo
PR_LABEL: authz
#PR_NUMBER: ${{ github.event.number }} # PR number optional - cheange ${{ steps.extract_branch.outputs.branch }} with ${{ env.PR_NUMBER }} in the job

jobs:
demo-new-env:
if: ${{ github.event.label.name == 'env.PR_LABEL' }}
if: contains( github.event.pull_request.labels.*.name, 'authz')
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/run-pdp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@ name: demo-run-pdp-and-tests

on:
pull_request:
branches:
- main
types: [synchronize]

env:
PROJECT_ID: 538e459351a847058fe28f1e6679b87b #Demo project id (under 'Permit.io Tests' workspace), project Demo
PR_LABEL: authz

jobs:
demo-run-pdp-and-tests:
if: ${{ github.event.label.name == 'env.PR_LABEL' }}
if: contains( github.event.pull_request.labels.*.name, 'authz')
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down

0 comments on commit 0fc4ab8

Please sign in to comment.