File tree Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Original file line number Diff line number Diff 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
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 }}
Original file line number Diff line number Diff 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 ];
Original file line number Diff line number Diff 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 ] ;
You can’t perform that action at this time.
0 commit comments