Skip to content

Commit

Permalink
Merge workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
hmelder committed Jan 19, 2024
1 parent 5a1cd42 commit 5f73869
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 36 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/id_fixup.yml

This file was deleted.

18 changes: 17 additions & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,20 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
with:
token: ${{ secrets.BOT_GITHUB_TOKEN }}
fetch-depth: 0

- name: Set up Python 3.x environment
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Setup Git
run: |
git config --global user.name "AnkiTUM-Bot"
git config --global user.email ${{ secrets.BOT_GITHUB_EMAIL }}
- name: Set up private key
env:
Expand All @@ -28,6 +36,14 @@ jobs:
echo "$SSH_PRIVATE_KEY" | base64 --decode > $HOME/.ssh/id_ed25519
chmod 600 $HOME/.ssh/id_ed25519
ssh-keyscan -H ${{ secrets.MIRROR_IP }} >> $HOME/.ssh/known_hosts
- name: Run ID Fixup Script
run: |
pip install -r .github/workflows/requirements.txt --user
python3 .github/workflows/id_fixup.py ./
git add .
git commit -m "Auto-fixup IDs by GitHub Actions"
git push
- name: Install dependencies
run: |
Expand Down

0 comments on commit 5f73869

Please sign in to comment.