Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaharagon committed Mar 31, 2024
1 parent be02674 commit 119f94f
Show file tree
Hide file tree
Showing 26 changed files with 153 additions and 151 deletions.
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/1_Content_Correction.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ name: "Content Correction"
description: Report any inaccurate, incorrect, or outdated information on the website.
labels: ["t:correction"]
body:

- type: markdown
attributes:
value: |
Expand Down
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/2_Website_Issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ labels: ["t:bug"]
assignees:
- jonaharagon
body:

- type: markdown
attributes:
value: |
Expand Down
3 changes: 0 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,13 @@
version: 2

Check warning on line 21 in .github/dependabot.yml

View workflow job for this annotation

GitHub Actions / MegaLinter

21:1 [document-start] missing document start "---"

registries:

github-privacyguides:
type: git
url: https://github.com
username: x-access-token
password: ${{secrets.REPO_PAT}}

updates:

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
Expand All @@ -51,7 +49,6 @@ updates:
interval: "monthly"
labels:
- "fix:submodules"

# Disabled because some updates tend to remove needed dependencies for some reason

# # Maintain dependencies for pipenv
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-offline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: 'false'
persist-credentials: "false"

- uses: actions/download-artifact@v4
with:
Expand All @@ -52,7 +52,7 @@ jobs:
- name: Python setup
uses: actions/setup-python@v5
with:
cache: 'pipenv'
cache: "pipenv"

- uses: actions/cache/[email protected]
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
with:
repository: ${{ inputs.repo }}
ref: ${{ inputs.ref }}
persist-credentials: 'false'
persist-credentials: "false"
fetch-depth: 0

- uses: actions/download-artifact@v4
Expand All @@ -76,7 +76,7 @@ jobs:
- uses: actions/setup-python@v5
with:
cache: 'pipenv'
cache: "pipenv"

- uses: actions/cache/[email protected]
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ jobs:
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
contents: read
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

steps:
- uses: actions/configure-pages@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/download-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
with:
repository: 'privacyguides/${{ inputs.repo }}'
repository: "privacyguides/${{ inputs.repo }}"
path: repo-${{ inputs.repo }}
ssh-key: ${{ secrets.ACTIONS_SSH_KEY }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ name: 🪞 Push to Mirrors
permissions:
contents: read

on: [ push, delete, create ]
on: [push, delete, create]

# Ensures that only one mirror task will run at a time.
concurrency:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/publish-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ jobs:
env:
address: ${{ needs.deploy.outputs.netlify_preview_address }}
steps:

- uses: thollander/[email protected]
with:
message: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ name: 📦 Release
on:
push:
tags:
- '*'
- "*"

permissions:
contents: write
Expand Down
22 changes: 15 additions & 7 deletions .github/workflows/test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,28 +29,36 @@ on:
branches:
- main
push:
branches:
- main

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
env:
MAIN_BRANCH: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}

jobs:
megalinter:
name: MegaLinter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: MegaLinter
id: ml
- if: ${{ env.MAIN_BRANCH }}
uses: actions/checkout@v4

- if: ${{ !env.MAIN_BRANCH }}
uses: actions/checkout@v4
with:
fetch-depth: 0

- id: ml
# You can override MegaLinter flavor used to have faster performances
# More info at https://megalinter.io/flavors/
uses: oxsecurity/megalinter/flavors/[email protected]
env:
# All available variables are described in documentation
# https://megalinter.io/configuration/
VALIDATE_ALL_CODEBASE: true
# Validates all source when push on main, else just the git diff with main.
VALIDATE_ALL_CODEBASE: ${{ env.MAIN_BRANCH }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# ADD YOUR CUSTOM ENV VARIABLES HERE OR DEFINE THEM IN A FILE .mega-linter.yml AT THE ROOT OF YOUR REPOSITORY
DISABLE: COPYPASTE,SPELL,HTML
Expand Down
31 changes: 15 additions & 16 deletions .github/workflows/upload-crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ permissions:
on:
workflow_dispatch:
push:
branches: [ main ]
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -37,18 +37,17 @@ jobs:
runs-on: ubuntu-latest

steps:

- name: Checkout
uses: actions/checkout@v4

- name: crowdin action
uses: crowdin/[email protected]
with:
upload_sources: true
upload_sources_args: '--auto-update --delete-obsolete'
download_translations: false
config: crowdin.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
- name: Checkout
uses: actions/checkout@v4

- name: crowdin action
uses: crowdin/[email protected]
with:
upload_sources: true
upload_sources_args: "--auto-update --delete-obsolete"
download_translations: false
config: crowdin.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@
"tag:yaml.org,2002:python/name:pymdownx.superfences.fence_code_format",
"tag:yaml.org,2002:python/name:material.extensions.emoji.twemoji",
"tag:yaml.org,2002:python/name:material.extensions.emoji.to_svg"
]
],
"editor.formatOnSave": true
}
3 changes: 0 additions & 3 deletions config/layouts/home.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
definitions:

- &background_color >-
#FFD06F

Expand Down Expand Up @@ -35,7 +34,6 @@ definitions:

# Meta tags
tags:

# Open Graph
og:type: website
og:title: *page_title_with_site_name
Expand All @@ -59,7 +57,6 @@ tags:
# Card size and layers
size: { width: 1200, height: 630 }

Check failure on line 58 in config/layouts/home.yml

View workflow job for this annotation

GitHub Actions / MegaLinter

58:8 [braces] too many spaces inside braces

Check failure on line 58 in config/layouts/home.yml

View workflow job for this annotation

GitHub Actions / MegaLinter

58:33 [braces] too many spaces inside braces
layers:

# Background
- background:
color: *background_color
Expand Down
3 changes: 0 additions & 3 deletions config/layouts/page.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
definitions:

- &background_image >-
{%- if page.meta.cover -%}
theme/assets/img/cover/{{ page.meta.cover }}
Expand Down Expand Up @@ -70,7 +69,6 @@ definitions:

# Meta tags
tags:

# Open Graph
og:type: website
og:title: *page_title_with_site_name
Expand All @@ -94,7 +92,6 @@ tags:
# Card size and layers
size: { width: 1200, height: 630 }
layers:

# Background
- background:
image: *background_image
Expand Down
3 changes: 0 additions & 3 deletions config/layouts/pride.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
definitions:

- &background_image >-
{%- if page.meta.cover -%}
theme/assets/img/cover/{{ page.meta.cover }}
Expand Down Expand Up @@ -55,7 +54,6 @@ definitions:

# Meta tags
tags:

# Open Graph
og:type: website
og:title: *page_title_with_site_name
Expand All @@ -79,7 +77,6 @@ tags:
# Card size and layers
size: { width: 1200, height: 630 }
layers:

# Background
- background:
image: *background_image
Expand Down
Loading

0 comments on commit 119f94f

Please sign in to comment.