Skip to content

Commit

Permalink
Merge pull request #107 from andreasscherbaum/github
Browse files Browse the repository at this point in the history
Update GitHub Workflow with new JSON file
  • Loading branch information
andreasscherbaum authored Feb 13, 2024
2 parents 87b5d25 + 99758cf commit 8a600a4
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/verify-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,37 @@ jobs:
run: echo "${{ steps.pwd.outputs.PWD }}"


- name: Verify JSON
- name: Verify JSON postgresfriends.json
run: jq -e "." < postgresfriends.json > /dev/null

- name: Verify postgresfriends.json data integrity
run: ./bin/verify-data.py < postgresfriends.json > /dev/null

- name: Find 'Mastadon' in file
- name: Find 'Mastadon' in postgresfriends.json file
run: echo "COUNT=$(grep -c 'Mastadon' postgresfriends.json)" >>$GITHUB_OUTPUT
id: mastadon_count
id: mastadon_count_friends

- name: Show 'Mastadon' word count
run: echo "${{ steps.mastadon_count.outputs.COUNT }}"
run: echo "${{ steps.mastadon_count_friends.outputs.COUNT }}"

- name: Break if word 'Mastadon' is found
run: exit 1
if: steps.mastadon_count.outputs.COUNT != '0'
if: steps.mastadon_count_friends.outputs.COUNT != '0'


- name: Verify JSON postgresprojects.json
run: jq -e "." < postgresprojects.json > /dev/null

- name: Verify postgresprojects.json data integrity
run: ./bin/verify-data.py < postgresprojects.json > /dev/null

- name: Find 'Mastadon' in postgresprojects.json file
run: echo "COUNT=$(grep -c 'Mastadon' postgresprojects.json)" >>$GITHUB_OUTPUT
id: mastadon_count_projects

- name: Show 'Mastadon' word count
run: echo "${{ steps.mastadon_count_projects.outputs.COUNT }}"

- name: Break if word 'Mastadon' is found
run: exit 1
if: steps.mastadon_count_projects.outputs.COUNT != '0'

0 comments on commit 8a600a4

Please sign in to comment.