Skip to content

Commit 46cf49f

Browse files
committed
Parameterized env variables
1 parent c1fd64d commit 46cf49f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/perlcritic.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ jobs:
1616
name: Check with PerlCritic
1717
runs-on: ubuntu-latest
1818
steps:
19+
- name: Set REPOSITORY
20+
run: echo "REPOSITORY=${GITHUB_REPOSITORY#*/}" >> "${GITHUB_ENV}"
1921
- name: Check out
2022
uses: actions/checkout@v4
2123
- name: Install PerlCritic
2224
run: |
2325
sudo apt update -y
2426
sudo apt install libperl-critic-perl
2527
- name: Run PerlCritic
26-
run: perlcritic JavaInfo
28+
run: perlcritic ${REPOSITORY}

0 commit comments

Comments
 (0)