Skip to content

Commit 02db210

Browse files
committed
Format YAML
1 parent 0e7a4e3 commit 02db210

16 files changed

+5189
-6453
lines changed

.github/workflows/mega-linter.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ jobs:
6969
echo "(${{ env.APPLY_FIXES_EVENT }} == 'all' || ${{ env.APPLY_FIXES_EVENT }} == ${{ github.event_name }}) && ${{ env.APPLY_FIXES_MODE }} == 'pull_request' && (${{ github.event_name }} == 'push' || ${{ github.event.pull_request.head.repo.full_name }} == ${{ github.repository }})"
7070
- name: Create Pull Request with applied fixes
7171
id: cpr
72-
if: (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'pull_request' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository)
72+
if: (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'pull_request'
73+
&& (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository)
7374
uses: peter-evans/create-pull-request@v7
7475
with:
7576
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
@@ -97,10 +98,14 @@ jobs:
9798
# Print the condition
9899
echo "${{ steps.ml.outputs.has_updated_sources }} == 1 && (${{ env.APPLY_FIXES_EVENT }} == 'all' || ${{ env.APPLY_FIXES_EVENT }} == ${{ github.event_name }}) && ${{ env.APPLY_FIXES_MODE }} == 'commit' && ${{ github.ref }} != 'refs/heads/master' && (${{ github.event_name }} == 'push' || ${{ github.event.pull_request.head.repo.full_name }} == ${{ github.repository }})"
99100
- name: Prepare commit
100-
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'commit' && github.ref != 'refs/heads/master' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository)
101+
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name)
102+
&& env.APPLY_FIXES_MODE == 'commit' && github.ref != 'refs/heads/master' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name
103+
== github.repository)
101104
run: sudo chown -Rc $UID .git/
102105
- name: Commit and push applied linter fixes
103-
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'commit' && github.ref != 'refs/heads/master' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository)
106+
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name)
107+
&& env.APPLY_FIXES_MODE == 'commit' && github.ref != 'refs/heads/master' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name
108+
== github.repository)
104109
uses: stefanzweifel/git-auto-commit-action@v5
105110
with:
106111
branch: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }}

.github/workflows/pythonpackage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ jobs:
5959
ci/run-tests.sh --tests ${{ matrix.test-tool }} --files $changed_files
6060
- name: Run on push
6161
if: github.event_name == 'push'
62-
run: |
62+
run: |-
6363
ci/run-tests.sh --tests ${{ matrix.test-tool }}

ci/pytest/yaml.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
---
12
test:
2-
test1: [42, "test", Null]
3-
test2:
4-
tea: False
5-
coffee: True
6-
list_of_lists:
7-
- [1, 2, 3,4, 5]
8-
- ["ABC", "DEF", "GHI"]
9-
- [Null, False, True, true, false, null]
10-
test3: 42
3+
test1: [42, "test", Null]
4+
test2:
5+
tea: False
6+
coffee: True
7+
list_of_lists:
8+
- [1, 2, 3, 4, 5]
9+
- ["ABC", "DEF", "GHI"]
10+
- [Null, False, True, true, false, null]
11+
test3: 42

0 commit comments

Comments
 (0)