Skip to content

commit

commit #591

Workflow file for this run

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 }}