Merge pull request #174 from andreasscherbaum/dianfay #511
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Verify Pull Requests | |
# Run this workflow every time a new commit pushed to the repository | |
on: | |
push: | |
branches: ['*'] | |
#branches-ignore: 'main' | |
pull_request: | |
branches: ['*'] | |
#branches-ignore: 'main' | |
workflow_dispatch: | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
pr-test: | |
name: Verify data | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout data | |
uses: actions/checkout@v3 | |
- name: Calculate working directory | |
run: echo "PWD=$(realpath ./$EXTENSION_SUBDIRECTORY)" >>$GITHUB_OUTPUT | |
id: pwd | |
- name: Working directory | |
run: echo "${{ steps.pwd.outputs.PWD }}" | |
- 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 postgresfriends.json file | |
run: echo "COUNT=$(grep -c 'Mastadon' postgresfriends.json)" >>$GITHUB_OUTPUT | |
id: mastadon_count_friends | |
- name: Show 'Mastadon' word count | |
run: echo "${{ steps.mastadon_count_friends.outputs.COUNT }}" | |
- name: Break if word 'Mastadon' is found | |
run: exit 1 | |
if: steps.mastadon_count_friends.outputs.COUNT != '0' | |
- name: Find 'Linkedin' in postgresfriends.json file | |
run: echo "COUNT=$(grep -c 'Linkedin' postgresfriends.json)" >>$GITHUB_OUTPUT | |
id: linkedin_count_friends | |
- name: Show 'Linkedin' word count | |
run: echo "${{ steps.linkedin_count_friends.outputs.COUNT }}" | |
- name: Break if word 'Linkedin' is found | |
run: exit 1 | |
if: steps.linkedin_count_friends.outputs.COUNT != '0' | |
- name: Find 'BlueSky' in postgresfriends.json file | |
run: echo "COUNT=$(grep -c 'BlueSky' postgresfriends.json)" >>$GITHUB_OUTPUT | |
id: bluesky_count_friends | |
- name: Show 'BlueSky' word count | |
run: echo "${{ steps.bluesky_count_friends.outputs.COUNT }}" | |
- name: Break if word 'BlueSky' is found | |
run: exit 1 | |
if: steps.bluesky_count_friends.outputs.COUNT != '0' | |
- name: Find 'Youtube' in postgresfriends.json file | |
run: echo "COUNT=$(grep -c 'Youtube' postgresfriends.json)" >>$GITHUB_OUTPUT | |
id: youtube_count_friends | |
- name: Show 'Youtube' word count | |
run: echo "${{ steps.youtube_count_friends.outputs.COUNT }}" | |
- name: Break if word 'Youtube' is found | |
run: exit 1 | |
if: steps.youtube_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' | |
- name: Find 'Linkedin' in postgresprojects.json file | |
run: echo "COUNT=$(grep -c 'Linkedin' postgresprojects.json)" >>$GITHUB_OUTPUT | |
id: linkedin_count_projects | |
- name: Show 'Linkedin' word count | |
run: echo "${{ steps.linkedin_count_projects.outputs.COUNT }}" | |
- name: Break if word 'Linkedin' is found | |
run: exit 1 | |
if: steps.linkedin_count_projects.outputs.COUNT != '0' | |
- name: Find 'BlueSky' in postgresprojects.json file | |
run: echo "COUNT=$(grep -c 'BlueSky' postgresprojects.json)" >>$GITHUB_OUTPUT | |
id: bluesky_count_projects | |
- name: Show 'Bluesky' word count | |
run: echo "${{ steps.bluesky_count_projects.outputs.COUNT }}" | |
- name: Break if word 'BlueSky' is found | |
run: exit 1 | |
if: steps.bluesky_count_projects.outputs.COUNT != '0' | |
- name: Find 'Youtube' in postgresprojects.json file | |
run: echo "COUNT=$(grep -c 'Youtube' postgresprojects.json)" >>$GITHUB_OUTPUT | |
id: youtube_count_projects | |
- name: Show 'Youtube' word count | |
run: echo "${{ steps.youtube_count_projects.outputs.COUNT }}" | |
- name: Break if word 'Youtube' is found | |
run: exit 1 | |
if: steps.youtube_count_projects.outputs.COUNT != '0' |