Skip to content

Commit e38ad67

Browse files
committed
Rename variable for clarity in GitHub Actions workflow script
1 parent c11e451 commit e38ad67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/github-actions-ansible-lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
uses: actions/github-script@v6
5353
with:
5454
script: |
55-
const core = require('@actions/core');
55+
const coreLib = require('@actions/core');
5656
const pr = await github.rest.pulls.get({
5757
owner: context.repo.owner,
5858
repo: context.repo.repo,
@@ -65,6 +65,6 @@ jobs:
6565
"Checklist",
6666
];
6767
const missingSections = requiredSections.filter(section => !body.includes(section));
68-
if(missingSections.length > 0) {
69-
core.setFailed(`PR Description is missing the following sections: ${missingSections.join(", ")}`);
68+
if (missingSections.length > 0) {
69+
coreLib.setFailed(`PR Description is missing the following sections: ${missingSections.join(", ")}`);
7070
}

0 commit comments

Comments
 (0)