Skip to content

Commit

Permalink
update main branch workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
lizkrznarich committed Apr 19, 2023
1 parent 93f4cda commit bcd96cf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dev_manual_index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,5 @@ jobs:
with:
channel: '#ror-curation-releases'
color: 'good'
text: 'DEV index status: ${{ steps.indexdata.outcome }}. From directory: ${{ github.event.inputs.directory-name }}. Please check: ${env.GITHUB_SERVER_URL}/${env.GITHUB_REPOSITORY}/actions/runs/${env.GITHUB_RUN_ID}'
text: 'DEV index status to ES ${{ github.event.inputs.es-version }}: ${{ steps.indexdata.outcome }}. From directory: ${{ github.event.inputs.directory-name }}. Please check: ${env.GITHUB_SERVER_URL}/${env.GITHUB_REPOSITORY}/actions/runs/${env.GITHUB_RUN_ID}'

12 changes: 10 additions & 2 deletions .github/workflows/main_manual_index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ on:
type: string
required: true
description: Name of the release tag that you would like to deploy to DEV
es-version:
description: Elastic search version to deploy to
required: true
default: 7
type: choice
options:
- 6
- 7
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down Expand Up @@ -65,7 +73,7 @@ jobs:
cd .github/workflows
python -m pip install --upgrade pip
pip install requests==2.23.0
python index_files.py -u ${{ secrets.INDEX_DEV_API_URL }} -d ${{ github.event.inputs.release-tag }} -he ${{ secrets.INDEX_DEV_API_HEADERS }}
python index_files.py -u ${{ secrets.INDEX_DEV_API_URL }} -d ${{ github.event.inputs.release-tag }} -es ${{ github.event.inputs.es-version }} -he ${{ secrets.INDEX_DEV_API_HEADERS }}
- name: Notify Slack
if: always()
uses: edge/simple-slack-notify@master
Expand All @@ -74,5 +82,5 @@ jobs:
with:
channel: '#ror-curation-releases'
color: 'good'
text: 'DEV index status: ${{ steps.indexdata.outcome }}. From directory: ${{ github.event.inputs.release-tag }}. Please check: ${env.GITHUB_SERVER_URL}/${env.GITHUB_REPOSITORY}/actions/runs/${env.GITHUB_RUN_ID}'
text: 'DEV index status to ES ${{ github.event.inputs.es-version }}: ${{ steps.indexdata.outcome }}. From directory: ${{ github.event.inputs.release-tag }}. Please check: ${env.GITHUB_SERVER_URL}/${env.GITHUB_REPOSITORY}/actions/runs/${env.GITHUB_RUN_ID}'

2 changes: 1 addition & 1 deletion .github/workflows/main_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
cd .github/workflows
python -m pip install --upgrade pip
pip install requests==2.23.0
python index_files.py -u ${{ secrets.INDEX_DEV_API_URL }} -d ${{ github.event.release.tag_name }} -he ${{ secrets.INDEX_DEV_API_HEADERS }}
python index_files.py -u ${{ secrets.INDEX_DEV_API_URL }} -d ${{ github.event.release.tag_name }} -es 7 -he ${{ secrets.INDEX_DEV_API_HEADERS }}
- name: Notify Slack
if: always()
uses: edge/simple-slack-notify@master
Expand Down

0 comments on commit bcd96cf

Please sign in to comment.