Skip to content

Commit adf7450

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

File tree

1 file changed

+43
-42
lines changed

1 file changed

+43
-42
lines changed

.github/workflows/sync_ansible_project.yml

Lines changed: 43 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ on:
1010
# - name: my-step
1111
# run: echo "Hello World!"
1212
# Add a note
13-
env:
13+
# env:
1414
# NUMBERS: '1, 2, 3, 4, 5, 6, 7, 8, 9, 10'
15-
PROJECT_DEV_IDs: '562, 586, 591, 645, 681, 683, 723, 728, 732, 907'
16-
PROJECT_PROD_IDs: '513, 535, 576, 598, 705, 730, 749, 758'
15+
# PROJECT_DEV_IDs: '562, 586, 591, 645, 681, 683, 723, 728, 732, 907'
16+
# PROJECT_PROD_IDs: '513, 535, 576, 598, 705, 730, 749, 758'
1717
# PROJECT_DEV_IDs:
1818
# - 562 # RHEL Automation - main
1919
# - 586 # RHEL 8 STIG - dev - development
@@ -34,50 +34,51 @@ env:
3434
# - 730 # RHEL Compliance Jobs - main
3535
# - 749 # RHEL Automation - Development Branch - development
3636
# - 758 # RHEL Compliance Jobs @ 09:19:32:1932 AM - main
37-
jobs:
38-
compute:
39-
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
52-
strategy:
53-
matrix:
54-
devid: ["${{ needs.compute.outputs.PROJECT_DEV_IDs }}"]
55-
56-
steps:
57-
- name: Run matrix for ${{ matrix.devid }}
58-
run: |
59-
echo "Channel: ${{ matrix.devid }}"
60-
6137
# jobs:
62-
# job-loop:
38+
# compute:
6339
# 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
6452
# strategy:
6553
# 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]
54+
# devid: ["${{ needs.compute.outputs.PROJECT_DEV_IDs }}"]
55+
7056
# 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 }}
77-
# - name: Print item
78-
# run: |
79-
# echo Item: $ {{ matrix.dev_id }}
80-
# # echo Item: ${{ 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 }}
77+
- name: Print item
78+
run: |
79+
echo Item: ${{ matrix.PROJECT_DEV_IDs }}
80+
# echo Item: $ {{ matrix.dev_id }}
81+
8182

8283
# job-print:
8384
# needs: job-loop

0 commit comments

Comments
 (0)