Skip to content

Commit

Permalink
Merge pull request #84 from IABTechLab/tjm-UID22982-update-referenced…
Browse files Browse the repository at this point in the history
…-actions

Update referenced actions to remove warnings
  • Loading branch information
thomasm-ttd authored Mar 19, 2024
2 parents 94eecd6 + aeaa1fc commit 12b6231
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ jobs:

- name: Create Release
if: ${{ steps.checkRelease.outputs.is_release == 'true' }}
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
name: ${{ steps.version.outputs.new_version }}
body: ${{ steps.github_release.outputs.changelog }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/shared-publish-to-docker-versioned.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
publish_vulnerabilities:
description: If true, will attempt to publish any vulnerabilities to GitHub. Defaults to true. Set to false for private repos.
type: string
default: true
default: 'true'
force_release:
description: If 'yes', will force the creation a release, if 'no' will not create a release. 'branch' will use release_type and the branch to determine if a release should be created.
type: string
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/shared-publish-to-maven-versioned.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ jobs:

- name: Create Release
if: ${{ env.IS_RELEASE == 'true' }}
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
name: v${{ steps.version.outputs.new_version }}
body: ${{ steps.github_release.outputs.changelog }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/shared-publish-to-nuget-versioned.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
name: v${{ steps.version.outputs.new_version }}
body: ${{ steps.github_release.outputs.changelog }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/shared-publish-to-pypi-versioned.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
name: v${{ steps.version.outputs.new_version }}
body: ${{ steps.github_release.outputs.changelog }}
Expand Down
6 changes: 3 additions & 3 deletions actions/shared_create_releases/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Create releases and build changelogs
inputs:
is_release:
description: True if a release should be created
default: false
default: 'false'
new_version:
description: The new version number to be incremented to
required: true
Expand Down Expand Up @@ -58,15 +58,15 @@ runs:

- name: Create Docker Release
if: ${{ inputs.is_release == 'true' && inputs.publish_platform == 'Docker' }}
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
name: v${{ inputs.new_version }}
body: ${{ steps.github_release_docker.outputs.changelog }}
draft: true

- name: Create Maven Release
if: ${{ inputs.is_release == 'true' && inputs.publish_platform == 'Maven'}}
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
name: v${{ inputs.new_version }}
body: ${{ steps.github_release_maven.outputs.changelog }}
Expand Down
6 changes: 1 addition & 5 deletions actions/shared_publish_to_docker/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,16 @@ inputs:
default: ''
publish_vulnerabilities:
description: If true, will attempt to publish any vulnerabilities to GitHub. Defaults to true. Set to false for private repos.
type: string
default: true
default: 'true'
docker_image_name:
description: The docker image name
required: true
type: string
docker_registry:
description: The docker registry
required: true
type: string
docker_context:
description: The docker context
default: .
type: string
scan_type:
description: The scan-type for aquasecurity/trivy-action action. Default to a fs scan.
default: fs
Expand Down
2 changes: 1 addition & 1 deletion actions/start_azure_private_operator/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ runs:

steps:
- name: Log in to Azure
uses: azure/login@v1
uses: azure/login@v2
with:
creds: ${{ inputs.azure_credentials }}
enable-AzPSSession: true
Expand Down

0 comments on commit 12b6231

Please sign in to comment.