-
Notifications
You must be signed in to change notification settings - Fork 4
35 lines (32 loc) · 1.14 KB
/
app.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: commit
on:
watch:
types: [started]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/[email protected]
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- id: star
run: |
python main.py ${{ secrets.PAT }} $GITHUB_REPOSITORY
echo "name=$(awk -F' ' '{print $1}' /tmp/user.txt)" >> $GITHUB_OUTPUT
echo "count=$(awk -F' ' '{print $2}' /tmp/user.txt)" >> $GITHUB_OUTPUT
- run: |
echo ${{ steps.star.outputs.email }} ${{ steps.star.outputs.name }} ${{ steps.star.outputs.count }}
git config --local user.email "${{ github.actor }}@users.noreply.github.com"
git config --local user.name "${{ github.actor }}"
git add .
git commit -m "${{ steps.star.outputs.count }} 🌟" -a --allow-empty
git push
# - run: |
# python main.py ${{ secrets.PAT }} $GITHUB_REPOSITORY ${{ steps.star.outputs.count }}