Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

Commit

Permalink
fix yamllint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher committed Oct 22, 2022
1 parent 9411dca commit 08d3915
Show file tree
Hide file tree
Showing 10 changed files with 98 additions and 86 deletions.
6 changes: 4 additions & 2 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
---
name: Bug Report
description: Create a bug report to help us improve.
body:
- type: markdown
attributes:
value: >
**THIS IS NOT THE PLACE TO ASK FOR SUPPORT!**
Please use [Discord](https://retroarcher.github.io/discord) for support issues.
Please use our [Support Center](https://app.lizardbyte.dev/support) for support issues.
- type: textarea
id: description
attributes:
Expand Down Expand Up @@ -40,4 +41,5 @@ body:
- type: markdown
attributes:
value: |
Make sure to close your issue when it's solved! If you found the solution yourself please comment so that others benefit from it.
Make sure to close your issue when it's solved! If you found the solution yourself please comment so that
others benefit from it.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# This action is centrally managed in https://github.com/<organization>/.github/
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in
# the above-mentioned repo.
Expand Down
34 changes: 18 additions & 16 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: CI

on:
Expand All @@ -13,21 +14,22 @@ jobs:
name: Check Changelog
runs-on: ubuntu-latest
steps:
- name: Checkout
if: ${{ github.ref == 'refs/heads/master' || github.base_ref == 'master' }}
uses: actions/checkout@v3

- name: Verify Changelog
id: verify_changelog
if: ${{ github.ref == 'refs/heads/master' || github.base_ref == 'master' }}
# base_ref for pull request check, ref for push
uses: LizardByte/.github/actions/verify_changelog@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout
if: ${{ github.ref == 'refs/heads/master' || github.base_ref == 'master' }}
uses: actions/checkout@v3

- name: Verify Changelog
id: verify_changelog
if: ${{ github.ref == 'refs/heads/master' || github.base_ref == 'master' }}
# base_ref for pull request check, ref for push
uses: LizardByte/.github/actions/verify_changelog@master
with:
token: ${{ secrets.GITHUB_TOKEN }}

outputs:
next_version: ${{ steps.verify_changelog.outputs.changelog_parser_version }}
last_version: ${{ steps.verify_changelog.outputs.latest_release_tag_name }}
release_body: ${{ steps.verify_changelog.outputs.changelog_parser_description }}
release_body: ${{ steps.verify_changelog.outputs.changelog_parser_description }}

version_check:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -58,7 +60,7 @@ jobs:
echo "pyra_version=${OUTPUT}" >> $GITHUB_ENV
- name: Compare versions
if: ( env.pyra_version != needs.check_changelog.outputs.next_version ) && ( github.ref == 'refs/heads/master' || github.base_ref == 'master' )
if: ( env.pyra_version != needs.check_changelog.outputs.next_version ) && ( github.ref == 'refs/heads/master' || github.base_ref == 'master' ) # yamllint disable-line rule:line-length
run: |
echo "Version number in pyra/version.py does not match version in CHANGELOG.md"
exit 1
Expand All @@ -69,9 +71,9 @@ jobs:
matrix:
os: [windows-2019, ubuntu-18.04, macos-10.15]
architecture: [x64]
include: # additional runs
- os: windows-2019
architecture: x86
include: # additional runs
- os: windows-2019
architecture: x86

runs-on: ${{ matrix.os }}
needs: [check_changelog, version_check]
Expand Down
31 changes: 16 additions & 15 deletions .github/workflows/ci-docker.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# This action is centrally managed in https://github.com/<organization>/.github/
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in
# the above-mentioned repo.
Expand All @@ -17,17 +18,17 @@ jobs:
name: Check Changelog
runs-on: ubuntu-latest
steps:
- name: Checkout
if: ${{ github.ref == 'refs/heads/master' || github.base_ref == 'master' }}
uses: actions/checkout@v3

- name: Verify Changelog
id: verify_changelog
if: ${{ github.ref == 'refs/heads/master' || github.base_ref == 'master' }}
# base_ref for pull request check, ref for push
uses: LizardByte/.github/actions/verify_changelog@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout
if: ${{ github.ref == 'refs/heads/master' || github.base_ref == 'master' }}
uses: actions/checkout@v3

- name: Verify Changelog
id: verify_changelog
if: ${{ github.ref == 'refs/heads/master' || github.base_ref == 'master' }}
# base_ref for pull request check, ref for push
uses: LizardByte/.github/actions/verify_changelog@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
outputs:
next_version: ${{ steps.verify_changelog.outputs.changelog_parser_version }}

Expand All @@ -49,13 +50,13 @@ jobs:
run: |
# get branch name
BRANCH=${GITHUB_HEAD_REF}
if [ -z "$BRANCH" ]
then
echo "This is a PUSH event"
BRANCH=${{ github.ref_name }}
fi
# determine to push image to dockerhub and ghcr or not
if [[ $GITHUB_EVENT_NAME == "push" ]]; then
PUSH=true
Expand All @@ -67,7 +68,7 @@ jobs:
REPOSITORY=${{ github.repository }}
BASE_TAG=$(echo $REPOSITORY | tr '[:upper:]' '[:lower:]')
COMMIT=${{ github.sha }}
TAGS="${BASE_TAG}:${COMMIT:0:7},ghcr.io/${BASE_TAG}:${COMMIT:0:7}"
if [[ $GITHUB_REF == refs/heads/master ]]; then
Expand All @@ -82,7 +83,7 @@ jobs:
if [[ ${NEXT_VERSION} != "" ]]; then
TAGS="${TAGS},${BASE_TAG}:${NEXT_VERSION},ghcr.io/${BASE_TAG}:${NEXT_VERSION}"
fi
# read the platforms from `.docker_platforms`
PLATFORMS=$(<.docker_platforms)
Expand Down
91 changes: 46 additions & 45 deletions .github/workflows/localize.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: localize

on:
Expand All @@ -17,57 +18,57 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3

- name: Install Python 3.9
uses: actions/setup-python@v3 # https://github.com/actions/setup-python
with:
python-version: '3.9'
- name: Install Python 3.9
uses: actions/setup-python@v3 # https://github.com/actions/setup-python
with:
python-version: '3.9'

- name: Set up Python 3.9 Dependencies
run: |
python -m pip install --upgrade pip setuptools
python -m pip install -r requirements.txt
- name: Set up Python 3.9 Dependencies
run: |
python -m pip install --upgrade pip setuptools
python -m pip install -r requirements.txt
- name: Update Strings
run: |
python ./scripts/_locale.py --extract
- name: Update Strings
run: |
python ./scripts/_locale.py --extract
- name: git diff
run: |
# disable the pager
git config --global pager.diff false
- name: git diff
run: |
# disable the pager
git config --global pager.diff false
# print the git diff
git diff locale/retroarcher.po
# print the git diff
git diff locale/retroarcher.po
# set the variable with minimal output
OUTPUT=$(git diff --numstat locale/retroarcher.po)
echo "git_diff=${OUTPUT}" >> $GITHUB_ENV
# set the variable with minimal output
OUTPUT=$(git diff --numstat locale/retroarcher.po)
echo "git_diff=${OUTPUT}" >> $GITHUB_ENV
- name: git reset
if: ${{ env.git_diff == '1 1 locale/retroarcher.po' }} # only run if more than 1 line changed
run: |
git reset --hard
- name: git reset
if: ${{ env.git_diff == '1\t1\tlocale/retroarcher.po' }} # only run if more than 1 line changed
run: |
git reset --hard
- name: Create/Update Pull Request
uses: peter-evans/create-pull-request@v4
with:
add-paths: |
locale/*.po
token: ${{ secrets.GH_PAT }} # must trigger PR tests
commit-message: New localization template
branch: localize/update
delete-branch: true
base: nightly
title: New Babel Updates
body: |
Update report
- Updated with *today's* date
- Auto-generated by [create-pull-request][1]
- name: Create/Update Pull Request
uses: peter-evans/create-pull-request@v4
with:
add-paths: |
locale/*.po
token: ${{ secrets.GH_PAT }} # must trigger PR tests
commit-message: New localization template
branch: localize/update
delete-branch: true
base: nightly
title: New Babel Updates
body: |
Update report
- Updated with *today's* date
- Auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request
labels: |
babel
l10n
[1]: https://github.com/peter-evans/create-pull-request
labels: |
babel
l10n
1 change: 1 addition & 0 deletions .github/workflows/python-flake8.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# This action is centrally managed in https://github.com/<organization>/.github/
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in
# the above-mentioned repo.
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Python Tests

on:
Expand All @@ -10,11 +11,11 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ windows-2019, ubuntu-18.04, macos-10.15 ]
architecture: [ x64 ]
include: # additional runs
- os: windows-2019
architecture: x86
os: [windows-2019, ubuntu-18.04, macos-10.15]
architecture: [x64]
include: # additional runs
- os: windows-2019
architecture: x86

runs-on: ${{ matrix.os }}
steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-notifier.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# This action is centrally managed in https://github.com/<organization>/.github/
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in
# the above-mentioned repo.
Expand Down
1 change: 1 addition & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
Expand Down
7 changes: 4 additions & 3 deletions crowdin.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
"base_path": "."
"base_url": "https://api.crowdin.com" # optional (for Crowdin Enterprise only)
"preserve_hierarchy": false # flatten tree on crowdin
Expand All @@ -6,10 +7,10 @@
"l10n"
]

"files" : [
"files": [
{
"source" : "/locale/*.po",
"translation" : "/locale/%two_letters_code%/LC_MESSAGES/%original_file_name%",
"source": "/locale/*.po",
"translation": "/locale/%two_letters_code%/LC_MESSAGES/%original_file_name%",
"languages_mapping": {
"two_letters_code": {
# map non-two letter codes here, left side is crowdin designation, right side is babel designation
Expand Down

0 comments on commit 08d3915

Please sign in to comment.