-
Notifications
You must be signed in to change notification settings - Fork 10
52 lines (50 loc) · 1.54 KB
/
releases.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: releases
on:
schedule:
- cron: "0 * * * *"
env:
make_pr: 'false'
jobs:
check-releases:
runs-on: ubuntu-22.04
steps:
- name: checkout code
uses: actions/checkout@v4
- name: install Python
run: |
sudo apt-get update
sudo apt-get install -y python3 python3-pip
pip3 install requests
- name: install ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
- name: install pdd
run: gem install pdd
- name: pull releases
run: |
python3 py/auto_pull.py
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
# passphrase: ${{ secrets.PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
git_push_gpgsign: ""
- name: Check if branch exists
run: |
python3 py/is_branch_exist.py ${{ env.eo_lib_version }}
echo "make_pr: ${{ env.make_pr }}"
- name: Create pull request
if: ${{ env.make_pr == 'true' }}
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.TOKEN }}
committer: yegor256 <yegor256@gmail.com>
commit-message: New release for ${{ env.eo_lib_version }}
title: New release for ${{ env.eo_lib_version }}
body: New release for ${{ env.eo_lib_version }}
base: master
branch: update-${{ env.eo_lib_version }}
delete-branch: true