Skip to content

Commit

Permalink
[Sync] Checkout correct branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm committed Feb 7, 2024
1 parent 5946b4a commit 59cb8b7
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/sync-sf-translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ jobs:
with:
php-version: 8.2

- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
repository: symfony/symfony
fetch-depth: 0

- name: Get lowest version
id: version
run: |
Expand All @@ -33,12 +26,13 @@ jobs:
echo $version
echo "lowest_branch=$version" >> $GITHUB_OUTPUT
- name: Change branch
run: |
version=${{ steps.version.outputs.lowest_branch }}
git fetch origin $version
git checkout $version
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
repository: symfony/symfony
ref: ${{ steps.version.outputs.lowest_branch }}
fetch-depth: 0

- name: Download dependencies
run: |
Expand Down

0 comments on commit 59cb8b7

Please sign in to comment.