Skip to content

Commit

Permalink
Improve workflows for localization
Browse files Browse the repository at this point in the history
  • Loading branch information
Sporiff committed Feb 26, 2024
1 parent eaba567 commit c74c359
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/check_links.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Check broken links
on:
push:
branches: ["main"]
branches:
- main
pull_request:
workflow_dispatch:
jobs:
Expand All @@ -25,7 +26,7 @@ jobs:
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
args: --max-redirects 10 --exclude-mail --base ${{ steps.waitForVercel.outputs.url }} './src/content/docs/**/*.mdx'
args: --max-redirects 10 --base ${{ steps.waitForVercel.outputs.url }} './src/content/docs/**/*.mdx'
fail: true
check-live-links:
runs-on: ubuntu-22.04
Expand All @@ -37,7 +38,7 @@ jobs:
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
args: --max-redirects 10 --exclude-mail --base https://dev.adjust.com './src/content/docs/en/**/*.mdx'
args: --max-redirects 10 --base https://dev.adjust.com './src/content/docs/en/**/*.mdx'
fail: true
- name: Create issue to fix broken links
# Don't run this step for pull requests. We don't want to generate an issue every time!
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/fix_translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ jobs:
i18n-fixes:
name: Fix translated files
runs-on: ubuntu-latest
if: startsWith(github.head_ref, 'smartling')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
Expand All @@ -21,7 +22,7 @@ jobs:
- name: Commit changes
if: steps.git-check.outputs.modified == 'true'
run: |
git config --global user.name github-actions
git config --global user.email github-actions@github.com
git config --global user.name "adjust-pc-team"
git config --global user.email "[email protected].github.com"
git commit -am "Fix translated files"
git push
6 changes: 3 additions & 3 deletions .github/workflows/typos.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Check for typos
on: [pull_request]

on:
pull_request:
jobs:
typos:
name: Spell Check with Typos
runs-on: ubuntu-latest
if: startsWith(github.head_ref, 'smartling') == false
steps:
- name: Checkout Actions Repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4

- name: Check for typos
uses: crate-ci/typos@master
with:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/vale.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Style guide check
on: [pull_request]

on:
pull_request:
jobs:
vale:
name: Run Vale
runs-on: ubuntu-latest
if: startsWith(github.head_ref, 'smartling') == false
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: errata-ai/vale-action@reviewdog
Expand Down

0 comments on commit c74c359

Please sign in to comment.