Skip to content

Commit

Permalink
Improve name and id
Browse files Browse the repository at this point in the history
  • Loading branch information
masutaka committed Sep 26, 2024
1 parent 37c9e6a commit df9d65a
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ jobs:

# GitHub Actions組み込みのpathsによるフィルタでは、そのymlで実行する複数のjobそれぞれでpathsによる分岐ができない
# そのため https://github.com/dorny/paths-filter を使い、フィルタのjob → 各jobの順で実行することで複数jobの分岐を実現する
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: filter
- name: Determine languages
id: determine
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
with:
# ここで指定したkeyがoutputsに出力される
#
Expand Down Expand Up @@ -116,12 +117,12 @@ jobs:
with:
script: |
const outputs = {
go: ${{ steps.filter.outputs.go }},
java: ${{ steps.filter.outputs.java }},
javascript: ${{ steps.filter.outputs.javascript }},
python: ${{ steps.filter.outputs.python }},
ruby: ${{ steps.filter.outputs.ruby }},
swift: ${{ steps.filter.outputs.swift }},
go: ${{ steps.determine.outputs.go }},
java: ${{ steps.determine.outputs.java }},
javascript: ${{ steps.determine.outputs.javascript }},
python: ${{ steps.determine.outputs.python }},
ruby: ${{ steps.determine.outputs.ruby }},
swift: ${{ steps.determine.outputs.swift }},
};
const languages = Object.keys(outputs)
Expand Down

0 comments on commit df9d65a

Please sign in to comment.