Skip to content

Chess: Move D8 to E7 #48

Chess: Move D8 to E7

Chess: Move D8 to E7 #48

Workflow file for this run

name: chess
on:
issues:
types: [opened]
jobs:
move:
permissions: write-all
runs-on: ubuntu-latest
if: startsWith(github.event.issue.title, 'Chess:')
steps:
- uses: actions/checkout@v3
# Set up a Python 3.10 (64-bit) instance
- name: Setting up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
architecture: "x64"
# Use pip to install the dependencies and then run the script
- name: Play chess
env:
ISSUE_NUMBER: ${{ github.event.issue.number }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPOSITORY_OWNER: ${{ github.repository_owner }}
run: |
pip install -r requirements.txt
python main.py
# Create new commit with the changed files and push it to GitHub
- name: Commit and push changes
env:
ISSUE_TITLE: ${{ github.event.issue.title }}
ISSUE_AUTHOR: ${{ github.event.issue.user.login }}
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "${ISSUE_TITLE} by ${ISSUE_AUTHOR}"
git push
- name: Generate chess board img from markdown
run: |
npm i
node main.js
- name: Commit changes again
run: |
git config --global user.name "Ludmila"
git config --global user.email "[email protected]"
git add .
git commit -m "Generated the chess board preview img ♟️"
git push