Skip to content

Commit 0267d63

Browse files
committed
fix github actions workflow file for fossa
1 parent 850dc28 commit 0267d63

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.github/workflows/fossa.yml

+16-16
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ jobs:
1313
fossa:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- name: Checkout
17-
uses: actions/checkout@v2
18-
- name: Fossa init
19-
run: |-
20-
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | bash
21-
fossa init
22-
- name: Set env
23-
run: echo ::set-env name=line_number::$(grep -n "project" .fossa.yml | cut -f1 -d:)
24-
- name: Configuration
25-
run: |-
26-
sed -i "${line_number}s|.*| project: [email protected]:${GITHUB_REPOSITORY}.git|" .fossa.yml
27-
cat .fossa.yml
28-
- name: Upload dependencies
29-
run: fossa analyze --debug
30-
env:
31-
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
- name: Fossa init
19+
run: |-
20+
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | bash
21+
fossa init
22+
- name: Set env
23+
run: echo "line_number=$(grep -n "project" .fossa.yml | cut -f1 -d:)" >> $GITHUB_ENV
24+
- name: Configuration
25+
run: |-
26+
sed -i "${line_number}s|.*| project: [email protected]:${GITHUB_REPOSITORY}.git|" .fossa.yml
27+
cat .fossa.yml
28+
- name: Upload dependencies
29+
run: fossa analyze --debug
30+
env:
31+
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}

0 commit comments

Comments
 (0)