Skip to content

Commit

Permalink
chore(ci): updated upload/download-artifact actions to offset v3 depr…
Browse files Browse the repository at this point in the history
…ecation (#1851)

* fix(permissions): fix permissions on centengine log files  (#1282)

* fix permission rights on systemd files packaged on centreon

* fix

* fix

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

---------

Co-authored-by: May <[email protected]>
  • Loading branch information
mushroomempires and mushroomempires authored Dec 12, 2024
1 parent 2eb7641 commit 6d75a6a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
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

0 comments on commit 6d75a6a

Please sign in to comment.