Skip to content

all contributors within two weeks #16

all contributors within two weeks

all contributors within two weeks #16

#=================================================
# https://github.com/yangchuansheng/kubesphere-insights
# Lisence: MIT
# Author: Carson Yang
# Blog: https://icloudnative.io
#=================================================
name: all contributors within two weeks
# 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 * * 4'
# 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_within_two_weeks.sh
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: ks_all_contributors_within_two_weeks_${{ steps.date.outputs.date }}
path: ./ks_all_contributors_within_two_weeks_20*.txt