From f20280df79ea739289cbb40199f9a408305fea22 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 14 Sep 2020 14:31:57 +0200 Subject: [PATCH] docs(markdown): include and update examples (#9) * docs(markdown): include and update examples * chore(meta): update code owners Co-authored-by: matfax --- .github/CODEOWNERS | 5 +++++ README.md | 15 +++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 .github/CODEOWNERS diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..23d0c2d --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,5 @@ +.github/workflows matthias.fax@gmail.com +.gitignore matthias.fax@gmail.com +README.md matthias.fax@gmail.com +action.yml matthias.fax@gmail.com +entrypoint.sh matthias.fax@gmail.com diff --git a/README.md b/README.md index 7b392ae..6791722 100644 --- a/README.md +++ b/README.md @@ -45,9 +45,9 @@ name: codeowners on: pull_request_target: - branches: + branches: - master - types: + types: - ready_for_review - review_request_removed - reopened @@ -60,8 +60,13 @@ jobs: - name: checkout code uses: actions/checkout@v2.3.2 with: + # this only makes sure that forks are built as well repository: ${{ github.event.pull_request.head.repo.full_name }} ref: ${{ github.head_ref }} + # the fetch depth 0 (=all) is important + fetch-depth: 0 + # the token is necessary for checks to rerun after auto commit + token: ${{ secrets.PAT }} - name: update code owners uses: gofunky/update-codeowners@master with: @@ -71,13 +76,11 @@ jobs: uses: stefanzweifel/git-auto-commit-action@v4.5.1 with: commit_message: 'chore(meta): update code owners' - branch: ${{ github.head_ref }} - file_pattern: '.github/CODEOWNERS' + file_pattern: .github/CODEOWNERS - uses: christianvuerings/add-labels@v1.1 if: ${{ steps.committed.outputs.changes_detected == 'true' }} with: - labels: | - owned + labels: owned env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}