-
Notifications
You must be signed in to change notification settings - Fork 79
53 lines (46 loc) · 1.77 KB
/
build_downstream_deps.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Build Downstream Dependencies
on:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
get-branch-name:
runs-on: ubuntu-latest
steps:
- name: Get branch name
shell: bash
# The workflow is triggered by pull_request so we use `GITHUB_BASE_REF`
run: echo "branch_name=${GITHUB_BASE_REF}" >> $GITHUB_OUTPUT
id: get_branch_name
outputs:
branch_name: ${{ steps.get_branch_name.outputs.branch_name }}
build-cedar-drt:
needs: get-branch-name
uses: cedar-policy/cedar-spec/.github/workflows/build_and_test_drt_reusable.yml@main
with:
cedar_policy_ref: ${{ github.ref }}
cedar_spec_ref: ${{ needs.get-branch-name.outputs.branch_name }}
build-cedar-java:
needs: get-branch-name
uses: cedar-policy/cedar-java/.github/workflows/run_cedar_java_reusable.yml@main
with:
cedar_policy_ref: ${{ github.ref }}
cedar_java_ref: ${{ needs.get-branch-name.outputs.branch_name }}
build-cedar-examples-hello-world:
needs: get-branch-name
uses: cedar-policy/cedar-examples/.github/workflows/build_rust_hello_world_reusable.yml@main
with:
cedar_policy_ref: ${{ github.ref }}
cedar_examples_ref: ${{ needs.get-branch-name.outputs.branch_name }}
run-cedar-examples-use-cases:
needs: get-branch-name
uses: cedar-policy/cedar-examples/.github/workflows/run_example_use_cases_reusable.yml@main
with:
cedar_policy_ref: ${{ github.ref }}
cedar_examples_ref: ${{ needs.get-branch-name.outputs.branch_name }}
build-tiny-todo:
needs: get-branch-name
uses: cedar-policy/cedar-examples/.github/workflows/build_tiny_todo_reusable.yml@main
with:
cedar_policy_ref: ${{ github.ref }}
cedar_examples_ref: ${{ needs.get-branch-name.outputs.branch_name }}