a_repo_with_9_stars_and_0_forks

Automatic change repository name with stars and forks count after 60s

MIT License

Stars
10
Committers
7

Bot releases are hidden (Show)

a_repo_with_9_stars_and_0_forks - v1.0 build init Latest Release

Published by thuongtruong1009 over 2 years ago

What news

  • Config actions pipeline
  • Setup variable environments
  • Generate README and descriptions
  • Add trigger event and corn time in automatic jobs
  • Run action every 60 minutes
  • Auto rename the repository with verifying sha commits

Setup

  • Create ENV with name id GITHUBTOKEN in setting -> developer setting
  • Create run.yml job file in .github/workflow folder
name: "Run"

on:
  workflow_dispatch:
  watch:
    types: [started,fork]
  schedule:
    - cron: "*/60 * * * *"

jobs:
  run:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/cache@v2
        with:
          path: ~/.npm
          key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
          restore-keys: |
            ${{ runner.os }}-node-
      - run: npm i
      - uses: ./
        with:
          githubToken: ${{ secrets.GITHUBTOKEN }}
          actor: ${{ github.actor }}

Options

  • Change cron interval time
schedule:
    - cron: "*/60 * * * *"
    # auto re-run jobs after 60 minutes

Full Changelog: https://github.com/thuongtruong1009/a_repo_with_2_stars_and_0_forks/commits/v1.0