update workflow #8
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: Move Files on Update | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
move_files: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- name: Run Python script to move files | |
run: | | |
python distribute.py | |
- name: Configure Git | |
run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
- name: Commit and Push changes | |
run: | | |
git add . | |
git commit -m "Update wallpapers and README" | |
git push | |
env: | |
GITHUB_TOKEN: ${{ secrets.TOKEN }} |