Skip to content

Commit

Permalink
Update GitHub Actions to use @v4 to prevent deprecation issues (#428)
Browse files Browse the repository at this point in the history
* Update GitHub Actions to use @v4 to prevent deprecation issues

Signed-off-by: Yerzhaisang Taskali <[email protected]>

* updated CHANGELOG

Signed-off-by: Yerzhaisang Taskali <[email protected]>

* updated CHANGELOG

Signed-off-by: Yerzhaisang Taskali <[email protected]>

* updated dependabot.yml

Signed-off-by: Yerzhaisang Taskali <[email protected]>

* reverted unused changes

Signed-off-by: Yerzhaisang Taskali <[email protected]>

---------

Signed-off-by: Yerzhaisang Taskali <[email protected]>
  • Loading branch information
Yerzhaisang authored Dec 30, 2024
1 parent 155bdc3 commit 013f274
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 20 deletions.
13 changes: 9 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
version: 2
updates:
- directory: /
open-pull-requests-limit: 3
package-ecosystem: pip
- package-ecosystem: pip
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 3
labels:
- "dependabot"
- "dependencies"
version: 2

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: weekly
2 changes: 1 addition & 1 deletion .github/workflows/build_deploy_doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Integ ${{ matrix.cluster }} secured=${{ matrix.secured }} version=${{matrix.entry.opensearch_version}}
run: "./.ci/run-tests ${{ matrix.cluster }} ${{ matrix.secured }} ${{ matrix.entry.opensearch_version }} doc"
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/html
2 changes: 1 addition & 1 deletion .github/workflows/changelog_verifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
verify-changelog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.event.pull_request.head.sha }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/delete_model_uploader_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
# Compared to backport.yml, this GitHub action will delete branch
# of a PR that is closed, but not merged as well.
- name: Delete closed PR branch
uses: dawidd6/action-delete-branch@v3
uses: dawidd6/action-delete-branch@v4
with:
GITHUB_TOKEN: ${{github.token}}
numbers: ${{github.event.pull_request.number}}
4 changes: 2 additions & 2 deletions .github/workflows/model_listing_uploader.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "This workflow should only be triggered on 'main' branch"
exit 1
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
Expand All @@ -40,7 +40,7 @@ jobs:
contents: read
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Trigger Jenkins Workflow with Generic Webhook
run: |
jenkins_trigger_token=${{ secrets.JENKINS_ML_MODELS_RELEASE_GENERIC_WEBHOOK_TOKEN }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/model_uploader.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ jobs:
environment: opensearch-py-ml-cicd-env
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set Up Python
uses: actions/setup-python@v2
with:
Expand Down Expand Up @@ -199,7 +199,7 @@ jobs:
- { opensearch_version: 2.11.0 }
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Export Arguments
run: |
echo "MODEL_ID=${{ github.event.inputs.model_id }}" >> $GITHUB_ENV
Expand Down Expand Up @@ -240,7 +240,7 @@ jobs:
echo "model_description_info=- Model Description: $model_description_info" >> $GITHUB_OUTPUT
echo "$model_description_info"
- name: Upload Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: upload
path: ./upload/
Expand Down Expand Up @@ -276,7 +276,7 @@ jobs:
issues: write
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Get Approvers
id: get_approvers
run: |
Expand Down Expand Up @@ -347,7 +347,7 @@ jobs:
model_info: ${{ github.event.inputs.model_id }} (v.${{ github.event.inputs.model_version }})(${{ github.event.inputs.tracing_format }})
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set Up Python
uses: actions/setup-python@v2
with:
Expand Down Expand Up @@ -398,7 +398,7 @@ jobs:
./utils/model_uploader/upload_history/MODEL_UPLOAD_HISTORY.md
./utils/model_uploader/upload_history/supported_models.json
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: model-uploader/${{ github.run_id }}
- name: Create a line for updating CHANGELOG.md
Expand Down Expand Up @@ -449,7 +449,7 @@ jobs:
contents: read
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Trigger Jenkins Workflow with Generic Webhook
run: |
jenkins_trigger_token=${{ secrets.JENKINS_ML_MODELS_RELEASE_GENERIC_WEBHOOK_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
contents: write
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- id: get_approvers
run: |
echo "approvers=$(cat .github/CODEOWNERS | grep @ | tr -d '* ' | sed 's/@/,/g' | sed 's/,//1')" >> $GITHUB_OUTPUT
Expand All @@ -27,7 +27,7 @@ jobs:
issue-body: "Please approve or deny the release of opensearch-py-ml. **Tag**: ${{ github.ref_name }} **Commit**: ${{ github.sha }}"
exclude-workflow-initiator-as-approver: true
- name: Set up Python 3
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install build tools
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update_model_listing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
echo "This workflow should only be triggered on 'main' branch"
exit 1
- name: Checkout Main Branch
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
- name: Checkout PR Branch
id: checkout_pr_branch
continue-on-error: true
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: model-listing-uploader/${{ github.run_id }}
- name: Create a line for updating CHANGELOG.md
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- updating listing file with three v2 sparse model - by @dhrubo-os ([#412](https://github.com/opensearch-project/opensearch-py-ml/pull/412))
- Update model upload history - opensearch-project/opensearch-neural-sparse-encoding-doc-v2-mini (v.1.0.0)(TORCH_SCRIPT) by @dhrubo-os ([#417](https://github.com/opensearch-project/opensearch-py-ml/pull/417))
- Update model upload history - opensearch-project/opensearch-neural-sparse-encoding-v2-distill (v.1.0.0)(TORCH_SCRIPT) by @dhrubo-os ([#419](https://github.com/opensearch-project/opensearch-py-ml/pull/419))
- Upgrade GitHub Actions workflows to use `@v4` to prevent deprecation issues with `@v3` by @yerzhaisang ([#428](https://github.com/opensearch-project/opensearch-py-ml/pull/428))

### Fixed
- Fix the wrong final zip file name in model_uploader workflow, now will name it by the upload_prefix alse.([#413](https://github.com/opensearch-project/opensearch-py-ml/pull/413/files))
Expand Down

0 comments on commit 013f274

Please sign in to comment.