Skip to content

all contributors within two weeks #1

all contributors within two weeks

all contributors within two weeks #1

#=================================================
# 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
# 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 "GITHUB_TOKEN=${{ secrets.GH_TOKEN }}" >> $GITHUB_ENV
echo "DATE=${{ steps.date.outputs.date }}" >> $GITHUB_ENV
#- name: Start SSH via Ngrok
# run: curl -sL https://gist.githubusercontent.com/retyui/7115bb6acf151351a143ec8f96a7c561/raw/7099b9db76729dc5761da72aa8525f632d8875c9/debug-github-actions.sh | bash
# env:
# After sign up on the https://ngrok.com/
# You can find this token here: https://dashboard.ngrok.com/get-started/setup
# NGROK_TOKEN: ${{ secrets.NGROK_TOKEN }}
# This password you will use when authorizing via SSH
# USER_PASS: ${{ secrets.USER_PASS }}
- name: Contributors
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