Skip to content

Commit

Permalink
Merge pull request #143 from Graur/141
Browse files Browse the repository at this point in the history
fixed auto-pull script
  • Loading branch information
yegor256 authored Jun 21, 2023
2 parents 1661a81 + 56b0581 commit 36fe549
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
run: |
python3 auto-pull.py
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.TOKEN }}
commit-message: Automated update of available list of releases
title: Automated update of available list of releases
body: Automated update of available list of releases
base: master
branch: automated-release-update
delete-branch: true

6 changes: 1 addition & 5 deletions auto-pull.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import re
import requests

os.system(f'git checkout -b automated-release-update')

directory = "objects/org/eolang"
unique_deps = set()

Expand Down Expand Up @@ -32,6 +30,4 @@
latest_version = response.json()['tag_name']
if latest_version > version:
print(f'New release for {name}: {latest_version}')
os.system(f'./pull.sh objectionary/{name}')
os.system(f'git add .')
os.system(f'git commit -m "Update {name} to {latest_version}"')
os.system(f'./pull.sh objectionary/{name}')

0 comments on commit 36fe549

Please sign in to comment.