From 51d0082ced7d75c3ab8fc3b65b6c618dadbe2b70 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:56:40 +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 | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 159f7e6de81e2..3592fbd1f1ad8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,5 +1,19 @@ name: Check URLs from changed files -on: [push, pull_request] +on: + push: + branches: + # Push events our default branch + - main + # Push events our auxiliar branches + - docs + - gh-pages + # Push events to branches matching refs/heads/fpb/... + - 'fpb/**' + # Push events to branches matching refs/heads/[username]/... + - ${{ github.actor }}/** + - 'eshellman/**' + - 'davorpa/**' + pull_request: jobs: job: runs-on: ubuntu-latest