Fix release workflow (#2516)
This commit is contained in:
8
.github/workflows/release.yaml
vendored
8
.github/workflows/release.yaml
vendored
@@ -38,6 +38,7 @@ jobs:
|
|||||||
tag:
|
tag:
|
||||||
# only on original eclipse-hawkbit/hawkbit repo and when release fixed version
|
# only on original eclipse-hawkbit/hawkbit repo and when release fixed version
|
||||||
if: github.repository == 'eclipse-hawkbit/hawkbit' && inputs.revision != '0-SNAPSHOT'
|
if: github.repository == 'eclipse-hawkbit/hawkbit' && inputs.revision != '0-SNAPSHOT'
|
||||||
|
needs: audit
|
||||||
uses: ./.github/workflows/reusable_workflow_tag.yaml
|
uses: ./.github/workflows/reusable_workflow_tag.yaml
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@@ -49,7 +50,8 @@ jobs:
|
|||||||
license-scan:
|
license-scan:
|
||||||
# only on original eclipse-hawkbit/hawkbit repo
|
# only on original eclipse-hawkbit/hawkbit repo
|
||||||
if: github.repository == 'eclipse-hawkbit/hawkbit'
|
if: github.repository == 'eclipse-hawkbit/hawkbit'
|
||||||
uses: ./.github/workflows/reusable_license-scan.yaml
|
needs: tag
|
||||||
|
uses: ./.github/workflows/reusable_workflow_license-scan.yaml
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
with:
|
with:
|
||||||
@@ -58,6 +60,7 @@ jobs:
|
|||||||
trivy-scan:
|
trivy-scan:
|
||||||
# only on original eclipse-hawkbit/hawkbit repo or when manually triggered
|
# only on original eclipse-hawkbit/hawkbit repo or when manually triggered
|
||||||
if: github.repository == 'eclipse-hawkbit/hawkbit'
|
if: github.repository == 'eclipse-hawkbit/hawkbit'
|
||||||
|
needs: tag
|
||||||
uses: ./.github/workflows/reusable_workflow_trivy-scan.yaml
|
uses: ./.github/workflows/reusable_workflow_trivy-scan.yaml
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -69,6 +72,9 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
# only on original eclipse-hawkbit/hawkbit repo
|
# only on original eclipse-hawkbit/hawkbit repo
|
||||||
if: github.repository == 'eclipse-hawkbit/hawkbit'
|
if: github.repository == 'eclipse-hawkbit/hawkbit'
|
||||||
|
needs:
|
||||||
|
- license-scan
|
||||||
|
- trivy-scan
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
Reference in New Issue
Block a user