Skip to content

Commit 17d6cfb

Browse files
authored
Update sync_ansible_project.yml
1 parent 581a1d3 commit 17d6cfb

File tree

1 file changed

+35
-11
lines changed

1 file changed

+35
-11
lines changed

.github/workflows/sync_ansible_project.yml

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,45 @@ env:
3535
# - 749 # RHEL Automation - Development Branch - development
3636
# - 758 # RHEL Compliance Jobs @ 09:19:32:1932 AM - main
3737
jobs:
38-
job-loop:
38+
compute:
3939
runs-on: ubuntu-latest
40+
outputs:
41+
PROJECT_DEV_IDs: ${{ env.PROJECT_DEV_IDs }}
42+
PROJECT_PROD_IDs: ${{ env.PROJECT_PROD_IDs }}
43+
steps:
44+
- name: Compute outputs
45+
run: |
46+
echo "PROJECT_DEV_IDs=${{ env.PROJECT_DEV_IDs }}" >> $GITHUB_OUTPUT
47+
echo "PROJECT_PROD_IDs=${{ env.PROJECT_PROD_IDs }}" >> $GITHUB_OUTPUT
48+
49+
build_test:
50+
runs-on: ubuntu-latest
51+
needs: compute
4052
strategy:
4153
matrix:
42-
# dev_id: ${{ fromJSON(env.PROJECT_DEV_IDs) }}
43-
# items: [item1, item2, item3, item4] # Replace with your list items
44-
PROJECT_DEV_IDs: [562, 586, 591, 645, 681, 683, 723, 728, 732, 907]
45-
PROJECT_PROD_IDs: [513, 535, 576, 598, 705, 730, 749, 758]
54+
devid: ["${{ needs.compute.outputs.PROJECT_DEV_IDs }}"]
55+
4656
steps:
47-
- name: collect variables
48-
uses: actions/setup-node@v4
49-
# run: |
50-
# echo Item: $ {{ matrix.dev_id }}
51-
with:
52-
devid: ${{ matrix.PROJECT_DEV_IDs }}
57+
- name: Run matrix for ${{ matrix.devid }}
58+
run: |
59+
echo "Channel: ${{ matrix.devid }}"
60+
61+
# jobs:
62+
# job-loop:
63+
# runs-on: ubuntu-latest
64+
# strategy:
65+
# matrix:
66+
# # dev_id: ${{ fromJSON(env.PROJECT_DEV_IDs) }}
67+
# # items: [item1, item2, item3, item4] # Replace with your list items
68+
# PROJECT_DEV_IDs: [562, 586, 591, 645, 681, 683, 723, 728, 732, 907]
69+
# PROJECT_PROD_IDs: [513, 535, 576, 598, 705, 730, 749, 758]
70+
# steps:
71+
# - name: collect variables
72+
# uses: actions/setup-node@v4
73+
# # run: |
74+
# # echo Item: $ {{ matrix.dev_id }}
75+
# with:
76+
# devid: ${{ matrix.PROJECT_DEV_IDs }}
5377
# - name: Print item
5478
# run: |
5579
# echo Item: $ {{ matrix.dev_id }}

0 commit comments

Comments
 (0)