fix(ci): update ref to detect changes (#4156)

This commit is contained in:
Kevin Duret 2023-01-18 14:20:48 +01:00 committed by GitHub
parent 05158b5807
commit d16428761c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View File

@ -7,8 +7,8 @@ import json
common = argv[1] == 'true'
f = open("package_directories.txt", "r")
line_packages = f.readline()
with open('package_directories.txt') as f:
line_packages = f.readline().strip('\n')
n = len(line_packages)
a = line_packages[1:n-1]
input_packages = a.split(',')
@ -16,8 +16,8 @@ packages = set()
for package in input_packages:
packages.add(package.strip('"/').removeprefix('src/'))
f = open("plugins.txt", "r")
line_plugins = f.readline()
with open('plugins.txt') as f:
line_plugins = f.readline().strip('\n')
n = len(line_plugins)
a = line_plugins[1:n-1]
input_plugins = a.split(',')
@ -31,7 +31,7 @@ list_packages = set()
for plugin in plugins:
list_plugins.add(plugin)
try:
found = re.search('(.*)\/(?:plugin\.pm|mode\/.+)', plugin).group(1)
found = re.search('(.*)\/(?:plugin\.pm|mode\/.+|custom\/.+)', plugin).group(1)
list_plugins.add(found)
except AttributeError:
pass

View File

@ -42,6 +42,7 @@ jobs:
- uses: dorny/paths-filter@v2
id: filter
with:
base: ${{ github.ref }}
list-files: shell
filters: |
common: