[每日信息流] 2024-11-12 #708
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ISSUE | |
on: | |
issues: | |
types: [opened] | |
jobs: | |
add-labels: | |
runs-on: ubuntu-latest | |
if: join(github.event.issue.labels) == '' | |
steps: | |
- name: Get current date | |
id: date | |
run: echo "::set-output name=date::$(date +'%Y-%m-%d')" | |
- name: Change Name | |
uses: actions-cool/issues-helper@v3 | |
with: | |
actions: 'update-issue' | |
token: ${{ secrets.MY_GITHUB_TOKEN }} | |
issue-number: ${{ github.event.issue.number }} | |
labels: pick | |
title: "[${{ steps.date.outputs.date }}] ${{ github.event.issue.title }}" | |
push-issue: | |
runs-on: ubuntu-latest | |
if: join(github.event.issue.labels) == '' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
- name: Cache pip | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install dependencies | |
run: ./install.sh | |
- name: Update Body | |
run: python3 picker.py --push-issue ${{ github.event.issue.number }} | |
env: | |
FEISHU_KEY: ${{ secrets.FEISHU_KEY }} | |
PICKER_FEISHU_KEY: ${{ secrets.PICKER_FEISHU_KEY }} | |
WECOM_KEY: ${{ secrets.WECOM_KEY }} | |
DINGTALK_KEY: ${{ secrets.DINGTALK_KEY }} | |
DINGTALK_SECRET: ${{ secrets.DINGTALK_SECRET }} | |
PICKER_DINGTALK_KEY: ${{ secrets.PICKER_DINGTALK_KEY }} | |
PICKER_DINGTALK_SECRET: ${{ secrets.PICKER_DINGTALK_SECRET }} | |
QQ_KEY: ${{ secrets.QQ_KEY }} | |
TELEGRAM_KEY: ${{ secrets.TELEGRAM_KEY }} | |
MAIL_KEY: ${{ secrets.MAIL_KEY }} | |
MAIL_RECEIVER: ${{ secrets.MAIL_RECEIVER }} | |
GH_TOKEN : ${{ secrets.MY_GITHUB_TOKEN }} | |