ci: update action, fix path

This commit is contained in:
Jozef Steinhübl 2023-12-30 21:10:51 +01:00
parent 89a7c5922f
commit 62e52832e7
No known key found for this signature in database
GPG key ID: E944BC293F5FF7E7
2 changed files with 28 additions and 26 deletions

View file

@ -18,7 +18,7 @@ jobs:
bun-version: latest
- name: Get changed files
uses: Mineflash07/gh-action-get-changed-files@feature/support-pr-target-event
uses: lots0logs/gh-action-get-changed-files@e5c59575dff4a94f74c6cc609a77c71f0becf7ec
with:
token: ${{ secrets.GITHUB_TOKEN }}

View file

@ -12,7 +12,9 @@ const urlRegex =
/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&\/\/=]*)/gi;
// Check if files/tags.toml was changed
const files = (await Bun.file("./files.json").json()) as string[];
const files = (await Bun.file(
join(import.meta.dir, "files.json")
).json()) as string[];
if (!files.some((f) => f.includes("tags"))) process.exit(0);
const errors: string[] = [];