Skip to content

Commit 3b2d359

Browse files
authored
Merge pull request #2 from physion/fix-runner-culture-issue
Fix runner culture issue
2 parents f8ba47b + 13de23f commit 3b2d359

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

.github/workflows/package.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,16 @@ jobs:
1111
name: Package distribution files
1212
runs-on: ubuntu-latest
1313
steps:
14+
- id: get-branch
15+
name: Get branch name
16+
run: |
17+
BRANCH=${{ github.ref }}
18+
BRANCH=${BRANCH#"refs/heads/"}
19+
echo "::set-output name=branch-name::${BRANCH}"
1420
- name: Checkout
1521
uses: actions/checkout@v2
1622
with:
17-
ref: main
23+
ref: ${{ steps.get-branch.outputs.branch-name }}
1824
- name: Install packages
1925
run: npm ci
2026
- name: Run linter
@@ -23,9 +29,7 @@ jobs:
2329
run: npm run package
2430
- name: Commit
2531
run: |
26-
BRANCH=${{ github.ref }}
27-
BRANCH=${BRANCH#"refs/heads/"}
2832
git config --global user.name "GitHub Actions"
2933
git add dist/
3034
git commit -m "Update dist" || echo "No changes to commit"
31-
git push origin "${BRANCH}"
35+
git push origin ${{ steps.get-branch.outputs.branch-name }}

dist/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55145,7 +55145,11 @@ async function startEc2Instance(label, githubRegistrationToken) {
5514555145
'curl -O -L https://github.com/actions/runner/releases/download/v2.278.0/actions-runner-linux-${RUNNER_ARCH}-2.278.0.tar.gz',
5514655146
'tar xzf ./actions-runner-linux-${RUNNER_ARCH}-2.278.0.tar.gz',
5514755147
'export RUNNER_ALLOW_RUNASROOT=1',
55148+
'sudo echo "export RUNNER_ALLOW_RUNASROOT=1" >> /etc/profile.d/env.sh',
5514855149
'export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1',
55150+
'sudo echo "export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1" >> /etc/profile.d/env.sh',
55151+
'export DOTNET_SYSTEM_GLOBALIZATION_PREDEFINED_CULTURES_ONLY=false',
55152+
'sudo echo "export DOTNET_SYSTEM_GLOBALIZATION_PREDEFINED_CULTURES_ONLY=false" >> /etc/profile.d/env.sh',
5514955153
`./config.sh --unattended --url https://github.com/${config.githubContext.owner}/${config.githubContext.repo} --token ${githubRegistrationToken} --labels ${label}`,
5515055154
'./run.sh',
5515155155
];

src/aws.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ async function startEc2Instance(label, githubRegistrationToken) {
1414
'curl -O -L https://github.com/actions/runner/releases/download/v2.278.0/actions-runner-linux-${RUNNER_ARCH}-2.278.0.tar.gz',
1515
'tar xzf ./actions-runner-linux-${RUNNER_ARCH}-2.278.0.tar.gz',
1616
'export RUNNER_ALLOW_RUNASROOT=1',
17+
'sudo echo "export RUNNER_ALLOW_RUNASROOT=1" >> /etc/profile.d/env.sh',
1718
'export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1',
19+
'sudo echo "export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1" >> /etc/profile.d/env.sh',
20+
'export DOTNET_SYSTEM_GLOBALIZATION_PREDEFINED_CULTURES_ONLY=false',
21+
'sudo echo "export DOTNET_SYSTEM_GLOBALIZATION_PREDEFINED_CULTURES_ONLY=false" >> /etc/profile.d/env.sh',
1822
`./config.sh --unattended --url https://github.com/${config.githubContext.owner}/${config.githubContext.repo} --token ${githubRegistrationToken} --labels ${label}`,
1923
'./run.sh',
2024
];

0 commit comments

Comments
 (0)