Skip to content

Commit

Permalink
Merge pull request #11805 from vkWeb/authors-are-pilots-of-kolibri
Browse files Browse the repository at this point in the history
Authors are pilots of kolibri
  • Loading branch information
vkWeb authored Jan 26, 2024
2 parents ffeef95 + 0e571ee commit 35461b9
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/add_contributor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,22 @@ jobs:

if: needs.check_contributor_exists.outputs.is_contributor_in_file == 'false'

permissions:
contents: write

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0

- name: Set up Git and checkout PR's branch
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git fetch origin refs/pull/${{ github.event.number }}/head:pr
git checkout pr
- name: Get contributor's full name and append to AUTHORS.md file
run: |
Expand All @@ -49,8 +60,6 @@ jobs:
- name: Commit and push changes to the contributor's PR branch
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add AUTHORS.md
git commit -m "Add ${{ github.event.pull_request.user.login }} to AUTHORS.md"
git push origin ${{ github.head_ref }}
git push origin pr:${{ github.event.pull_request.head.ref }}

0 comments on commit 35461b9

Please sign in to comment.