From 95f547b8e56cac8aaab21cd2522f62ef263ddffe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Ord=C3=A1s?= <3125580+davorpa@users.noreply.github.com> Date: Sat, 15 Jan 2022 20:38:30 +0100 Subject: [PATCH] fix: trilom/file-changes-action bug This action fails on first commit for push events. Apply some of proposals seen in their issue thread: https://github.com/trilom/file-changes-action/issues/116 --- .github/workflows/main.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 159f7e6de81e2..ea216a89e0abc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,5 +1,14 @@ name: Check URLs from changed files -on: [push, pull_request] +on: + push: + branches: + # Push events our default branch + - main + # Push events to branches matching refs/heads/fpb/... + - 'fpb/**' + # Push events to branches matching refs/heads/[username]/... + - ${{ github.actor }}/** + pull_request: jobs: job: runs-on: ubuntu-latest