Skip to content

Commit

Permalink
pre-commit: Apply formating
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv committed Oct 16, 2024
1 parent a81480d commit f5ad345
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/macos-linux-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
if: (contains(matrix.os, 'macos') || contains(matrix.os, 'ubuntu')) && contains(matrix.build_type, 'Debug')
run: |
echo "CMAKE_TOOLCHAIN_FILE=${GITHUB_WORKSPACE}/.github/workflows/cmake/linux-debug-toolchain.cmake" >> "$GITHUB_ENV"
- name: Get Compilation Flags
id: get_labels
uses: actions/github-script@v7
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scripts/get_compilation_flags.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ module.exports = async ({github, context, core}) => {
core.setOutput("cmakeFlags", cmakeFlags);
return;
}

const { data } = await github.rest.pulls.get({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: prNumber,
});
labelNames = data.labels.map(label => label.name);
}

labelNames.forEach(label => {
if (labelFlags[label]) {
if (Array.isArray(labelFlags[label])) {
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
- name: Get Compilation Flags
id: get_labels
uses: actions/github-script@v7
env:
env:
LABELS: ${{ env.LABELS }}
with:
script: |
Expand Down

0 comments on commit f5ad345

Please sign in to comment.