Skip to content

Commit d972a81

Browse files
Fix CI by passing the github repositoy
1 parent d2fe5a9 commit d972a81

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/files-scan-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ jobs:
138138
- name: Run scan
139139
env:
140140
GITHUB_REF: ${{ github.ref }}
141+
GITHUB_REPOSITORY: ${{ github.repository }}
141142
run: |
142143
./occ files:scan admin -vvv
143144
rm data/admin/files/res/alpine.JPG

src/model-manager.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ const path = require('path')
33
const tar = require('tar')
44
const VERSION = require('../package.json').version
55
const ref = process.env.GITHUB_REF ? process.env.GITHUB_REF : `refs/tags/v${VERSION}`
6+
const repository = process.env.GITHUB_REPOSITORY ?? 'nextcloud/recognize'
67

78
exports.downloadAll = async () => {
89
await download(
9-
`https://github.com/nextcloud/recognize/archive/${ref}.tar.gz`,
10+
`https://github.com/${repository}/archive/${ref}.tar.gz`,
1011
path.resolve(__dirname, '..'),
1112
{ filename: 'recognize.tar.gz' }
1213
)

0 commit comments

Comments
 (0)