versions #343
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: versions | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: 0 0 * * * | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
env: | |
PYTHON_VERSION: 3.9 | |
JDK_VERSION: 11 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set Up JDK ${{ env.JDK_VERSION }} | |
uses: actions/setup-java@v1 | |
with: | |
java-version: ${{ env.JDK_VERSION }} | |
- name: Set up Python ${{ env.PYTHON_VERSION }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install Pipenv and Dependencies | |
run: | | |
python -m pip install --upgrade pipenv wheel | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-build-cache-maven-local | |
- name: Update OpenSearch Manifests | |
run: | | |
./manifests.sh update | |
- name: GitHub App token | |
id: github_app_token | |
uses: tibdex/[email protected] | |
with: | |
app_id: ${{ secrets.APP_ID }} | |
private_key: ${{ secrets.APP_PRIVATE_KEY }} | |
installation_id: 22958780 | |
- name: Create Pull Request | |
id: cpr | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
token: ${{ steps.github_app_token.outputs.token }} | |
committer: opensearch-ci-bot <[email protected]> | |
author: opensearch-ci-bot <[email protected]> | |
commit-message: | | |
Updated manifests. | |
Signed-off-by: opensearch-ci-bot <[email protected]> | |
delete-branch: true | |
title: '[AUTO] Updated input manifests.' | |
body: | | |
I've noticed that a repo has incremented a version and have made some updates to input manifests. | |
- name: Check outputs | |
run: |- | |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" | |
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" |