chore(ci): extract contributors readme action to separate workflow (#806)

This commit is contained in:
Robert Sturla 2024-01-12 14:39:55 +00:00 committed by GitHub
parent 0d92fad67f
commit a4ac751efe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 8 deletions

View file

@ -21,7 +21,7 @@ jobs:
name: Make
runs-on: ubuntu-22.04
permissions:
contents: write
contents: read
packages: write
id-token: write
strategy:
@ -40,8 +40,7 @@ jobs:
is_stable_version: true
is_gts_version: false
steps:
# Checkout push-to-registry action GitHub repository
- name: Checkout Push to Registry action
- name: Checkout
uses: actions/checkout@v4
- name: Verify base image
@ -214,11 +213,7 @@ jobs:
- name: Echo outputs
if: github.event_name != 'pull_request'
run: |
echo "${{ toJSON(steps.push.outputs) }}"
- uses: akhilmhdh/contributors-readme-action@v2.3.6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
echo "${{ toJSON(steps.push.outputs) }}"
check:
name: Check all builds successful

22
.github/workflows/contributors.yml vendored Normal file
View file

@ -0,0 +1,22 @@
name: Update Contributors
on:
schedule:
- cron: '0 0 * * *' # Every day at midnight
push:
branches:
- main
jobs:
update:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: akhilmhdh/contributors-readme-action@v2.3.6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}