From 13dd04c6a7346680cd7ee2da7480acb763710bf7 Mon Sep 17 00:00:00 2001 From: Alexey Alter-Pesotskiy Date: Mon, 15 Jan 2024 10:39:42 +0000 Subject: [PATCH] Action --- .github/workflows/update-copyright.yml | 37 ++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/update-copyright.yml diff --git a/.github/workflows/update-copyright.yml b/.github/workflows/update-copyright.yml new file mode 100644 index 00000000000..af5acf684d6 --- /dev/null +++ b/.github/workflows/update-copyright.yml @@ -0,0 +1,37 @@ +name: Copyright + +on: + push: + branches: + - ci/test-copyright + + schedule: + # Runs "At 08:00 on day-of-month 1 in January" + - cron: '0 8 1 1 *' + + workflow_dispatch: + +env: + HOMEBREW_NO_INSTALL_CLEANUP: 1 # Disable cleanup for homebrew, we don't need it on CI + +jobs: + copyright: + name: Copyright + runs-on: macos-13 + steps: + - uses: actions/checkout@v3.1.0 + - uses: ./.github/actions/ruby-cache + - run: bundle exec fastlane copyright + timeout-minutes: 5 + env: + GITHUB_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }} + - uses: 8398a7/action-slack@v3 + with: + status: ${{ job.status }} + text: "You shall not pass!" + job_name: "${{ github.workflow }}: ${{ github.job }}" + fields: message,commit,author,action,workflow,job,took + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + MATRIX_CONTEXT: ${{ toJson(matrix) }} + if: failure()