Skip to content

Commit

Permalink
update serices list attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
ilude committed Mar 19, 2024
1 parent ad73420 commit 4c3e95a
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/update-services.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Generate Services Markdown

on:
push:
branches:
- master
paths:
- 'services-available/*.yml'
- '.github/update-services.yml'
on: [push]
# push:
# branches:
# - master
# paths:
# - 'services-available/*.yml'
# - '.github/update-services.yml'

jobs:

Expand All @@ -16,17 +16,17 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Check for Changes
id: changes
run: |
if git diff-tree --no-commit-id --name-only -r ${{ github.sha }} | grep -q 'services-available/.*\.yml\|\.github/update-services\.yml'; then
echo "changed=true" >> $GITHUB_OUTPUT
else
echo "changed=false" >> $GITHUB_OUTPUT
fi
# - name: Check for Changes
# id: changes
# run: |
# if git diff-tree --no-commit-id --name-only -r ${{ github.sha }} | grep -q 'services-available/.*\.yml\|\.github/update-services\.yml'; then
# echo "changed=true" >> $GITHUB_OUTPUT
# else
# echo "changed=false" >> $GITHUB_OUTPUT
# fi

- name: Generate Services Markdown
if: steps.changes.outputs.changed == 'true'
#if: steps.changes.outputs.changed == 'true'
run: |
services=""
for file in ./services-available/*.yml; do
Expand Down

0 comments on commit 4c3e95a

Please sign in to comment.