Skip to content

Commit

Permalink
Update YAML files to resolve yamllint errors
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Thaler <[email protected]>
  • Loading branch information
dthaler2 committed Apr 23, 2024
1 parent 873edbe commit a9e4c94
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 64 deletions.
78 changes: 39 additions & 39 deletions .github/workflows/generate-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name: Build

on:

Check warning on line 10 in .github/workflows/generate-files.yml

View workflow job for this annotation

GitHub Actions / validate-yaml

10:1 [truthy] truthy value should be one of [false, true]
push:
branches: [ main, v7.1 ]
branches: [main, v7.1]

permissions:
contents: read
Expand All @@ -25,48 +25,48 @@ jobs:
EXTDIR: ../extracted-files/

steps:
- name: Check out GEDCOM
uses: actions/checkout@v4
- name: Check out GEDCOM
uses: actions/checkout@v4

- name: Get the branch name
id: extract_branch
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
- name: Get the branch name
id: extract_branch
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"

- name: Install mdformat-gfm
run: pip install mdformat-gfm
- name: Install mdformat-gfm
run: pip install mdformat-gfm

- name: Generate files
working-directory: ${{github.workspace}}/build
shell: sh
- name: Generate files
working-directory: ${{github.workspace}}/build
shell: sh
run: |

Check failure on line 41 in .github/workflows/generate-files.yml

View workflow job for this annotation

GitHub Actions / validate-yaml

41:7 syntax error: expected <block end>, but found '?' (syntax)
export MD_FILES=$(ls ${{ env.SPECDIR }}gedcom*.md | sort)
python3 extract-grammars.py ${MD_FILES} ${{ env.EXTDIR }}
python3 uri-def.py ${MD_FILES} ${{ env.EXTDIR }}tags
ls -l ${{env.EXTDIR}}
export MD_FILES=$(ls ${{ env.SPECDIR }}gedcom*.md | sort)
python3 extract-grammars.py ${MD_FILES} ${{ env.EXTDIR }}
python3 uri-def.py ${MD_FILES} ${{ env.EXTDIR }}tags
ls -l ${{env.EXTDIR}}
- name: Set git config
env:
GH_TOKEN: ${{ github.token }}
run: |
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git config --global user.name "$(gh api /users/${GITHUB_ACTOR} | jq .name -r)"
git config -l
- name: Set git config
env:
GH_TOKEN: ${{ github.token }}
run: |
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git config --global user.name "$(gh api /users/${GITHUB_ACTOR} | jq .name -r)"
git config -l
- name: Check for diffs
id: diff
run: |
git diff --quiet origin/${{steps.extract_branch.outputs.branch}} extracted-files || echo "::set-output name=status::changes"
shell: bash
- name: Check for diffs
id: diff
run: |
git diff --quiet origin/${{steps.extract_branch.outputs.branch}} extracted-files || echo "::set-output name=status::changes"
shell: bash

- name: Create Pull Request
if: steps.diff.outputs.status == 'changes'
run: |
git checkout -b ${{steps.extract_branch.outputs.branch}}-generate-files
git add extracted-files
git commit -m "Update extracted files"
git push -f origin ${{steps.extract_branch.outputs.branch}}-generate-files
if ! gh pr list | grep -q "${{steps.extract_branch.outputs.branch}}-generate-files"; then
gh pr create -B ${{steps.extract_branch.outputs.branch}} -H ${{steps.extract_branch.outputs.branch}}-generate-files --title 'Update extracted-files in ${{steps.extract_branch.outputs.branch}}' --body $'Update extracted files\nThis PR is auto-generated by [gh pr create].' --label 'automated pr'
fi
env:
GH_TOKEN: ${{ github.token }}
- name: Create Pull Request
if: steps.diff.outputs.status == 'changes'
run: |
git checkout -b ${{steps.extract_branch.outputs.branch}}-generate-files
git add extracted-files
git commit -m "Update extracted files"
git push -f origin ${{steps.extract_branch.outputs.branch}}-generate-files
if ! gh pr list | grep -q "${{steps.extract_branch.outputs.branch}}-generate-files"; then
gh pr create -B ${{steps.extract_branch.outputs.branch}} -H ${{steps.extract_branch.outputs.branch}}-generate-files --title 'Update extracted-files in ${{steps.extract_branch.outputs.branch}}' --body $'Update extracted files\nThis PR is auto-generated by [gh pr create].' --label 'automated pr'
fi
env:
GH_TOKEN: ${{ github.token }}
50 changes: 25 additions & 25 deletions .github/workflows/propagate-main-to-v7.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name: Build

on:

Check warning on line 10 in .github/workflows/propagate-main-to-v7.1.yml

View workflow job for this annotation

GitHub Actions / validate-yaml

10:1 [truthy] truthy value should be one of [false, true]
push:
branches: [ main ]
branches: [main]

permissions:
contents: read
Expand All @@ -22,30 +22,30 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Check out GEDCOM
uses: actions/checkout@v4
- name: Check out GEDCOM
uses: actions/checkout@v4

- name: Set git config
env:
GH_TOKEN: ${{ github.token }}
run: |
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git config --global user.name "$(gh api /users/${GITHUB_ACTOR} | jq .name -r)"
git config -l
- name: Set git config
env:
GH_TOKEN: ${{ github.token }}
run: |
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git config --global user.name "$(gh api /users/${GITHUB_ACTOR} | jq .name -r)"
git config -l
- name: Check for diffs
id: diff
run: |
git fetch origin
git diff --quiet origin/main..origin/v7.1 || echo "::set-output name=status::changes"
- name: Check for diffs
id: diff
run: |
git fetch origin
git diff --quiet origin/main..origin/v7.1 || echo "::set-output name=status::changes"
- name: Create Pull Request
if: steps.diff.outputs.status == 'changes'
run: |
git checkout -b merge-main-into-v7.1
git push -f --set-upstream origin merge-main-into-v7.1
if ! gh pr list | grep -q "merge-main-into-v7.1"; then
gh pr create -B v7.1 -H merge-main-into-v7.1 --title 'Merge main into v7.1' --body $'Copy changes from main to v7.1\nThis PR is auto-generated by [gh pr create].' --label 'automated pr' --repo ${{ github.repository }}
fi
env:
GH_TOKEN: ${{ github.token }}
- name: Create Pull Request
if: steps.diff.outputs.status == 'changes'
run: |
git checkout -b merge-main-into-v7.1
git push -f --set-upstream origin merge-main-into-v7.1
if ! gh pr list | grep -q "merge-main-into-v7.1"; then
gh pr create -B v7.1 -H merge-main-into-v7.1 --title 'Merge main into v7.1' --body $'Copy changes from main to v7.1\nThis PR is auto-generated by [gh pr create].' --label 'automated pr' --repo ${{ github.repository }}
fi
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit a9e4c94

Please sign in to comment.