1
1
Fork 0
mirror of https://github.com/docker-mailserver/docker-mailserver synced 2024-05-28 18:16:11 +02:00
docker-mailserver/.github/workflows/contributors.yml
dependabot[bot] a4dee343d6
chore(deps): Bump myrotvorets/set-commit-status-action (#2931)
Bumps [myrotvorets/set-commit-status-action](https://github.com/myrotvorets/set-commit-status-action) from 1.1.5 to 1.1.6.
- [Release notes](https://github.com/myrotvorets/set-commit-status-action/releases)
- [Commits](https://github.com/myrotvorets/set-commit-status-action/compare/1.1.5...1.1.6)

---
updated-dependencies:
- dependency-name: myrotvorets/set-commit-status-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
2022-12-13 08:18:35 +13:00

66 lines
2.2 KiB
YAML

name: Update contributors
on:
workflow_dispatch:
schedule:
- cron: '0 0 1 * *'
jobs:
delete-old-branch:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Delete old contributors-update branch
uses: dawidd6/action-delete-branch@v3
with:
github_token: ${{secrets.GITHUB_TOKEN}}
branches: contributors-update
add-contributors:
runs-on: ubuntu-latest
needs: delete-old-branch
steps:
- uses: actions/checkout@v3
- name: Create contributors-update branch
uses: peterjgrainger/action-create-branch@v2.4.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: 'contributors-update'
- name: Auto-add contributors
uses: BobAnkh/add-contributors@v0.2.2
with:
BRANCH: 'contributors-update'
PULL_REQUEST: 'master'
CONTRIBUTOR: '## Contributors'
COLUMN_PER_ROW: '6'
ACCESS_TOKEN: ${{secrets.GITHUB_TOKEN}}
IMG_WIDTH: '100'
FONT_SIZE: '14'
PATH: '/CONTRIBUTORS.md'
COMMIT_MESSAGE: 'docs(CONTRIBUTORS): update contributors'
AVATAR_SHAPE: 'round'
# This workflow will not trigger a `pull_request` event without a PAT.
# The lint workflow is not important for this type of PR, skip it and pretend it was successful:
- name: 'Get the latest commit hash from the contributors-update branch'
id: commit-data
run: |
git pull
git checkout contributors-update
echo "head_sha=$(git rev-parse contributors-update)" >>"${GITHUB_OUTPUT}"
- name: 'Commit Status: Set Lint status to success (skipped)'
uses: myrotvorets/set-commit-status-action@1.1.6
with:
token: ${{ secrets.GITHUB_TOKEN }}
# Skipped workflows are still assigned a "success" status:
status: success
# This should be the correct commit SHA on the contributors-update branch:
sha: ${{ steps.commit-data.outputs.head_sha }}
# Name of status check to add/update:
context: 'lint'
# Optional message/note we can inline to the right of the context name in the UI:
description: "Lint skipped. Not relevant."