Fix Docker build and add concurrency limit #1574
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Extract Locales | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
extract_locales: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.ref }} | |
repository: ${{github.event.pull_request.head.repo.full_name}} | |
- name: Build Docker image | |
id: build | |
uses: ./.github/actions/build-docker | |
- name: Extract Locales | |
uses: ./.github/actions/run-docker | |
with: | |
version: ${{ steps.build.outputs.digest }} | |
run: | | |
make extract_locales | |
- name: Push Locales (dry-run) | |
if: github.event_name == 'pull_request' | |
shell: bash | |
run: | | |
if [[ ${{ github.event.pull_request.head.repo.fork}} == 'true' ]]; then | |
echo """ | |
Github actions are not authorized to push from workflows triggered by forks. | |
We cannot verify if the l10n extraction push will work or not. | |
Please submit a PR from the base repository if you are modifying l10n extraction scripts. | |
""" | |
exit 0 | |
fi | |
make push_locales ARGS="--dry-run" | |
- name: Push Locales | |
if: github.event_name == 'push' | |
shell: bash | |
run: | | |
make push_locales |