Skip to content

Commit

Permalink
Skip YAML file cleanup from landscape v1 if settings.yml is missing. (
Browse files Browse the repository at this point in the history
#89)

Signed-off-by: John Mertic <[email protected]>
  • Loading branch information
jmertic authored Dec 5, 2024
1 parent 15659a6 commit 6f22b4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,17 @@ runs:
target_path: ./landscape/landscape.yml
- name: Checkout landscapeapp
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.1.7@v4
if: ${{ hashFiles('./landscape/settings.yml') != '' }}
with:
repository: cncf/landscapeapp
path: landscapeapp
- name: Setup node
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
if: ${{ hashFiles('./landscape/settings.yml') != '' }}
with:
node-version: '18'
- name: Cleanup YAML files
if: ${{ hashFiles('./landscape/settings.yml') != '' }}
working-directory: ./landscapeapp
shell: bash
run: |
Expand Down

0 comments on commit 6f22b4c

Please sign in to comment.