Skip to content

Commit

Permalink
feat: trigger extract-translation-source-files with custom branch (#3564
Browse files Browse the repository at this point in the history
)
  • Loading branch information
OmarIthawi authored Feb 2, 2024
1 parent c1637f0 commit 27f8f2f
Showing 1 changed file with 14 additions and 6 deletions.
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 @@ -179,10 +184,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

0 comments on commit 27f8f2f

Please sign in to comment.