Skip to content

Latest commit

 

History

History
142 lines (104 loc) · 3.17 KB

TEMPLATE.md

File metadata and controls

142 lines (104 loc) · 3.17 KB

Test Auto Deploy

Automated script testing project based on Github Actions

Docs

jobs:
  publish:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@master
        with:
          persist-credentials: false
          fetch-depth: 0
      - name: Create README.md
        uses: actions-js/profile-readme@master
        with:
          username: <your username>
          github_token: ${{ secrets.GITHUB_TOKEN }}
      - name: Commit & Push changes
        uses: actions-js/push@master
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}

Example

<!--GITHUB_ACTIVITY:{"rows": 5, "raw": true}-->
<p align="center">
  Last refresh: 
  <b><!--TIMESTAMP--></b>
</p>
<!--GITHUB_REPOS:{"rows": 4, "raw": true}-->

Last Activity: <!--TIMESTAMP:{"format": "dddd, MMMM Do YYYY, h:mm:ss a", "tz": "Asia/Shanghai"}-->

Docs

name: Update README
on:
  schedule:
    - cron: "*/30 * * * *"
  workflow_dispatch:
jobs:
  build:
    name: Update this repo's README with recent activity
    runs-on: ubuntu-latest
    permissions:
      contents: write

    steps:
      - uses: actions/checkout@v3
      - uses: jamesgeorge007/github-activity-readme@master
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Example

Docs

# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the workflow will run
on:
  # Triggers the workflow on push or pull request events but only for the master branch
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

# 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

      # Runs a single command using the runners shell
      - name: Run a one-line script
        run: echo Hello, world!

      # Runs a set of commands using the runners shell
      - name: Run a multi-line script
        run: |
          echo Add other actions to build,
          echo test, and deploy your project.

Example

Demo: zryyyy/zryyyy

<!--START_SECTION:waka-->
<!--END_SECTION:waka-->