From 8bfc7f74207771c96e3f76ae9c435166ff5a2d44 Mon Sep 17 00:00:00 2001 From: Chris Glass Date: Tue, 13 Feb 2024 15:52:05 +0100 Subject: [PATCH] Checking SL link --- .github/workflows/check-sl.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/check-sl.yml diff --git a/.github/workflows/check-sl.yml b/.github/workflows/check-sl.yml new file mode 100644 index 0000000..a026a79 --- /dev/null +++ b/.github/workflows/check-sl.yml @@ -0,0 +1,26 @@ +name: Check SL + +on: + repository_dispatch: + workflow_dispatch: + schedule: + - cron: "*/2 * * * *" + +jobs: + linkChecker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@main + + - name: Check + id: checker + run: | + curl https://invest.swisslife-am.com -o curl-output + + - name: Create Issue From File + if: ${{ steps.checker.outputs.exit_code != 0 }} + uses: peter-evans/create-issue-from-file@v3 + with: + title: SL Link check failed! + content-filepath: curl-output + labels: report, automated issue \ No newline at end of file