Skip to content

Commit 02ac365

Browse files
committed
github: explicitly specify shell=bash
... because I don't want to have to write "{environment_variable_name}={value}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append just to append a line to a file.
1 parent b34415a commit 02ac365

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/run-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
perl-version: ${{ matrix.perl-version }}
3636
- name: "Create perl fingerprint file"
3737
run: perl -MConfig -wE 'say for sprintf("%vd", $^V), Config::bincompat_options' > perl-fingerprint
38+
shell: bash
3839
- name: "Cache CPAN fragments"
3940
uses: actions/cache@v3
4041
with:
@@ -50,6 +51,7 @@ jobs:
5051
key: xlocal-lib-${{ matrix.os }}-${{ hashFiles('perl-fingerprint', 'Makefile_PL_settings*.plx') }}
5152
- name: "Activate local lib directory"
5253
run: echo 'PERL5LIB=${{ github.workspace }}/${{ env.locallib }}/lib/perl5' >> $GITHUB_ENV
54+
shell: bash
5355
- run: cpanm --mirror "file://${{ github.workspace }}/${{ env.cachepan }}" --mirror https://www.cpan.org/ --save-dist "${{ github.workspace }}/${{ env.cachepan }}" -l "${{ env.locallib }}" --notest ExtUtils::MakeMaker
5456
- run: cpanm --mirror "file://${{ github.workspace }}/${{ env.cachepan }}" --mirror https://www.cpan.org/ --save-dist "${{ github.workspace }}/${{ env.cachepan }}" -l "${{ env.locallib }}" --notest --installdeps --with-develop .
5557
- run: perl Makefile.PL

.github/workflows/run-tests.yml.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
perl-version: ${{ matrix.perl-version }}
3636
- name: "Create perl fingerprint file"
3737
run: perl -MConfig -wE 'say for sprintf("%vd", $^V), Config::bincompat_options' > perl-fingerprint
38+
shell: bash
3839
- name: "Cache CPAN fragments"
3940
uses: actions/cache@v3
4041
with:
@@ -50,6 +51,7 @@ jobs:
5051
key: xlocal-lib-${{ matrix.os }}-${{ hashFiles('perl-fingerprint', 'Makefile_PL_settings*.plx') }}
5152
- name: "Activate local lib directory"
5253
run: echo 'PERL5LIB=${{ github.workspace }}/${{ env.locallib }}/lib/perl5' >> $GITHUB_ENV
54+
shell: bash
5355
- run: cpanm --mirror "file://${{ github.workspace }}/${{ env.cachepan }}" --mirror https://www.cpan.org/ --save-dist "${{ github.workspace }}/${{ env.cachepan }}" -l "${{ env.locallib }}" --notest ExtUtils::MakeMaker
5456
- run: cpanm --mirror "file://${{ github.workspace }}/${{ env.cachepan }}" --mirror https://www.cpan.org/ --save-dist "${{ github.workspace }}/${{ env.cachepan }}" -l "${{ env.locallib }}" --notest --installdeps --with-develop .
5557
- run: perl Makefile.PL

0 commit comments

Comments
 (0)