github.com/polarismesh/polaris@v1.17.8/.github/workflows/weekly-report.yml (about)

     1  # Tencent is pleased to support the open source community by making Polaris available.
     2  #
     3  # Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
     4  #
     5  # Licensed under the BSD 3-Clause License (the "License");
     6  # you may not use this file except in compliance with the License.
     7  # You may obtain a copy of the License at
     8  #
     9  # https://opensource.org/licenses/BSD-3-Clause
    10  #
    11  # Unless required by applicable law or agreed to in writing, software distributed
    12  # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
    13  # CONDITIONS OF ANY KIND, either express or implied. See the License for the
    14  # specific language governing permissions and limitations under the License.
    15  
    16  name: weekly-report
    17  
    18  on:
    19    schedule:
    20      - cron: "0 10 * * 1"
    21  
    22  jobs:
    23    create_issue:
    24      runs-on: ubuntu-latest
    25      steps:
    26        - name: Get today's date
    27          id: date
    28          run: |
    29            echo "::set-output name=today::$(date "+%Y-%m-%d")"
    30        - name: Create an issue
    31          uses: actions-ecosystem/action-create-issue@v1.0.0
    32          with:
    33            github_token: ${{ secrets.weekly_token }}
    34            title: "[Polaris Weekly Report] ${{ steps.date.outputs.today }}"
    35            body: |
    36              ## Polaris Weekly Report
    37            labels: |
    38              weekly-report