Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: trigger extract-translation-source-files with custom branch | FC-0012 #3564

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions .github/workflows/extract-translation-source-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ on:
description: 'Repository to extract translation source files from (leave blank to run all)'
required: false
type: string
ref:
description: 'If repository is specified, the ref to extract translation source files from (leave blank to use the default branch)'
required: false
default: ''
type: string

schedule:
- cron: '0 0 * * *' # every day at midnight
Expand Down Expand Up @@ -178,10 +183,11 @@ jobs:
run: sudo apt install -y gettext

# Clones the repository
- name: clone openedx/${{ matrix.repo }}
- name: clone ${{ github.repository_owner }}/${{ matrix.repo }}
uses: actions/checkout@v3
with:
repository: openedx/${{ matrix.repo }}
repository: ${{ github.repository_owner }}/${{ matrix.repo }}
ref: ${{ github.event.inputs.ref }}
path: translations/${{ matrix.repo }}

- name: prepare the environment with edx-platform specific changes
Expand Down Expand Up @@ -326,10 +332,11 @@ jobs:
ref: ${{ needs.setup-branch.outputs.branch }}

# Clones the repository
- name: clone openedx/${{ matrix.repo }}
- name: clone ${{ github.repository_owner }}/${{ matrix.repo }}
uses: actions/checkout@v3
with:
repository: openedx/${{ matrix.repo }}
repository: ${{ github.repository_owner }}/${{ matrix.repo }}
ref: ${{ github.event.inputs.ref }}
path: translations/${{ matrix.repo }}

# Sets up node/npm
Expand Down Expand Up @@ -392,10 +399,11 @@ jobs:
ref: ${{ needs.setup-branch.outputs.branch }}

# Clones the repository
- name: clone openedx/${{ matrix.repository_config.repo }}
- name: clone ${{ github.repository_owner }}/${{ matrix.repository_config.repo }}
uses: actions/checkout@v3
with:
repository: openedx/${{ matrix.repository_config.repo }}
repository: ${{ github.repository_owner }}/${{ matrix.repository_config.repo }}
ref: ${{ github.event.inputs.ref }}
path: translations/${{ matrix.repository_config.repo }}

# Sets up Python
Expand Down
Loading