commit #752
This file contains hidden or 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: 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/setup-python@v4.6.0 | |
| 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 }} | |