-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 1.13 KB
/
auto-update.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
name: Auto Updater
on:
workflow_dispatch:
schedule:
- cron: '30 17 * * *'
jobs:
update-elasticsearch:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: update
id: update_es
uses: ./.github/actions/update_elasticsearch
- name: Create commit message
id: commit_message
if: steps.update_es.outputs.elasticsearch-version
uses: ./.github/actions/create_commit_message
with:
elasticsearch-version: ${{ steps.update_es.outputs.elasticsearch-version }}
lucene-version: ${{ steps.update_es.outputs.lucene-version }}
java-version: ${{ steps.update_es.outputs.java-version }}
- name: Open PR
if: steps.update_es.outputs.elasticsearch-version
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.REPO_GHA_PAT }}
branch: releases/release-v${{ steps.update_es.outputs.elasticsearch-version }}
commit-message: ${{ steps.commit_message.outputs.commit-message}}
title: Releases v${{ steps.update_es.outputs.elasticsearch-version }}