all contributors #50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#================================================= | |
# https://github.com/yangchuansheng/kubesphere-insights | |
# Lisence: MIT | |
# Author: Carson Yang | |
# Blog: https://icloudnative.io | |
#================================================= | |
name: all contributors | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 1 * * *' | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: read | |
repository-projects: read | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
- name: Get current date | |
id: date | |
run: echo "::set-output name=date::$(date +%Y%m%d-%H%M%S)" | |
- name: set env | |
run: | | |
echo "DATE=${{ steps.date.outputs.date }}" >> $GITHUB_ENV | |
- name: Contributors | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: bash ks_all_contributors.sh | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ks_all_contributors_${{ steps.date.outputs.date }} | |
path: ./ks_all_contributors_20*.txt |