Skip to content

Commit

Permalink
Configure GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
tkcreateit committed Jun 7, 2024
1 parent 9e940b9 commit de8f7da
Showing 1 changed file with 15 additions and 27 deletions.
42 changes: 15 additions & 27 deletions .github/workflows/trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,28 @@ on:
- 'master-gha-OXDEV-8356'

jobs:
setup:
changed-files:
runs-on: ubuntu-latest
# outputs:
# matrix: ${{ steps.matrix.outputs.value }}
outputs:
matrix: ${{ steps.changed-files.outputs.all_changed_files }}
steps:
- uses: actions/checkout@v4
- name: Checkout recipes
uses: actions/checkout@v4
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44
- name: List all changed files
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
for file in ${ALL_CHANGED_FILES}; do
echo "$file was changed"
done
# - name: Retrieve changed and added files
# id: files
# uses: jitterbit/get-changed-files@v1
# with:
# format: json
# - id: matrix
# run: echo 'value=${{ steps.files.outputs.added_modified }}' >> $GITHUB_OUTPUT
# - run: echo "${{ steps.matrix.outputs.value }}"
with:
matrix: true

# build:
# needs: [ setup ]
# runs-on: ubuntu-latest
# strategy:
# matrix:
# value: ${{ fromJSON(needs.setup.outputs.matrix) }}
build:
needs: [ changed-files ]
runs-on: ubuntu-latest
strategy:
matrix:
value: ${{ fromJSON(needs.changed-files.outputs.matrix) }}

# steps:
# - run: echo "${{ matrix.value }}"
steps:
- run: echo "${{ matrix.files }}"
# - name: Checkout SKD
# uses: actions/checkout@v4
# with:
Expand Down

0 comments on commit de8f7da

Please sign in to comment.