Skip to content

绿我

绿我 #42

Workflow file for this run

name: green me!
on:
issues:
types: [opened]
jobs:
green:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
fetch-depth: 0
- name: Commit a year
run: |
username=${{ github.event.sender.login }}
git config user.email ${username}@users.noreply.github.com
git config user.name ${username}
for i in $(seq 365 -1 1); do
for j in $( seq $(( $RANDOM % 3 + 1 )) ); do
git commit --allow-empty -m "green!" --date="$i day ago"
done
done
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}