Skip to content

Commit 43ee28e

Browse files
committed
This is not needed.
1 parent 57225da commit 43ee28e

1 file changed

Lines changed: 0 additions & 48 deletions

File tree

.github/workflows/publish-nuget.yml

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -11,51 +11,3 @@ jobs:
1111
uses: Lombiq/GitHub-Actions/.github/workflows/publish-nuget.yml@dev
1212
secrets:
1313
API_KEY: ${{ secrets.NUGET_API_KEY }}
14-
15-
synchronize-with-crowdin:
16-
runs-on: ubuntu-latest
17-
steps:
18-
- name: Checkout
19-
uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev
20-
21-
- name: Set up .NET
22-
uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@dev
23-
24-
- name: Use PoExtractor and Upload Files
25-
shell: pwsh
26-
run: |
27-
dotnet tool install --global OrchardCoreContrib.PoExtractor
28-
extractpo . Translations
29-
if (-not (Test-Path .\Translations\*.pot))
30-
{
31-
Write-Output '::error::No POT files were found.'
32-
exit 1
33-
}
34-
35-
Set-Location Translations
36-
New-Item -Type Directory -Force ~/.ssh
37-
'${{ secrets.SSH_KEY }}' | Out-File ~/.ssh/id_ed25519
38-
'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK5CArjOvXPwAWfvnCAfjUNYRR3sEhQNcEFRC0rgmNRw bot@lombiq.com' | Out-File ~/.ssh/id_ed25519.pub
39-
chmod 400 ~/.ssh/*
40-
git clone git@github.com:OrchardCMS/OrchardCore.Commerce.Translations.git Repository
41-
New-Item -Type Directory -Force Repository/Localization
42-
43-
$arguments = @(
44-
'--rm'
45-
'--mount', "type=bind,source=$PWD,target=/data"
46-
'crowdin/cli'
47-
'sh', '-c', 'cd /data; sh update-crowdin.sh ${{ secrets.CROWDIN_PROJECT_ID }} ${{ secrets.CROWDIN_PERSONAL_TOKEN }}'
48-
)
49-
docker run @arguments
50-
51-
$currentCommitMessage = $(git show -s --format=%s)
52-
Copy-Item *.pot Repository/Localization
53-
54-
Set-Location Repository
55-
git config user.email "bot@lombiq.com"
56-
git config user.name "Lombiq Bot"
57-
git add --all
58-
Write-Output "git commit -m `"Update .pot files at '$currentCommitMessage'.`" (at $PWD)"
59-
git commit -m "Update .pot files at '$currentCommitMessage'."
60-
Write-Output "git push"
61-
git push

0 commit comments

Comments
 (0)