Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): updated upload/download-artifact actions to offset v3 deprecation #1852

Open
wants to merge 1 commit into
base: dev-23.04.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/actions/package-legacy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ inputs:
package_extension:
description: The package extension (deb or rpm)
required: true
distrib:
description: The distribution
required: true
frontend_index_cache_key:
description: The index.html cache key
frontend_index_file:
Expand Down Expand Up @@ -166,9 +169,9 @@ runs:
shell: bash

- name: Upload package artifacts
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: packages-${{ inputs.package_extension }}
name: packages-${{ inputs.package_extension }}-${{ inputs.distrib }}
path: ./*.${{ inputs.package_extension }}
retention-days: 1

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/gorgone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ jobs:
base_directory: gorgone
spec_file: gorgone/packaging/centreon-gorgone.spectemplate
package_extension: ${{ matrix.package_extension }}
distrib: ${{ matrix.distrib }}
image_name: ${{ matrix.image }}
module_name: gorgone
major_version: ${{ needs.get-environment.outputs.major_version }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:
type: string
description: The package extension (deb or rpm)
required: true
distrib:
type: string
description: The package distribution
required: true
frontend_index_cache_key:
type: string
description: The index.html cache key
Expand Down Expand Up @@ -102,6 +106,7 @@ jobs:
base_directory: ${{ inputs.base_directory }}
spec_file: ${{ inputs.spec_file }}
package_extension: ${{ inputs.package_extension }}
distrib: ${{ inputs.distrib }}
frontend_index_cache_key: ${{ inputs.frontend_index_cache_key }}
frontend_index_file: ${{ inputs.frontend_index_file }}
frontend_static_cache_key: ${{ inputs.frontend_static_cache_key }}
Expand Down