Skip to content

releases

releases #12024

Workflow file for this run

# The MIT License (MIT)
#
# Copyright (c) 2016-2024 Objectionary.com
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
---
name: releases
on:
schedule:
- cron: "0 * * * *"
env:
make_pr: 'false'
jobs:
check-releases:
runs-on: ubuntu-24.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: 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 }}
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@v7
with:
token: ${{ secrets.TOKEN }}
committer: yegor256 <[email protected]>
commit-message: New release for ${{ env.eo_lib_version }}
title: New release for ${{ env.eo_lib_version }}
body: A new release `${{ env.eo_lib_version }}` of the EO-to-Java compiler has been published on Maven Central. Don't forget to make a release here, asking `@rultor` about it.
base: master
branch: update-${{ env.eo_lib_version }}
delete-branch: true