Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/__greetings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permissions: {}

jobs:
greetings:
uses: hoverkraft-tech/ci-github-common/.github/workflows/greetings.yml@71b85947453f32b5d147ff3ab37351439a92d840 # 0.34.2
uses: hoverkraft-tech/ci-github-common/.github/workflows/greetings.yml@4c9d51717dc04d823dac2dc9ac2857e7b3069454 # 0.35.0
permissions:
contents: read
issues: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/__need-fix-to-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ permissions: {}

jobs:
main:
uses: hoverkraft-tech/ci-github-common/.github/workflows/need-fix-to-issue.yml@71b85947453f32b5d147ff3ab37351439a92d840 # 0.34.2
uses: hoverkraft-tech/ci-github-common/.github/workflows/need-fix-to-issue.yml@4c9d51717dc04d823dac2dc9ac2857e7b3069454 # 0.35.0
permissions:
contents: read
issues: write
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/__prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ jobs:
permissions:
contents: read
pull-requests: write
id-token: write # Needed for getting local workflow actions
2 changes: 1 addition & 1 deletion .github/workflows/__semantic-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ permissions: {}

jobs:
main:
uses: hoverkraft-tech/ci-github-common/.github/workflows/semantic-pull-request.yml@71b85947453f32b5d147ff3ab37351439a92d840 # 0.34.2
uses: hoverkraft-tech/ci-github-common/.github/workflows/semantic-pull-request.yml@4c9d51717dc04d823dac2dc9ac2857e7b3069454 # 0.35.0
permissions:
contents: write
pull-requests: write
2 changes: 1 addition & 1 deletion .github/workflows/__shared-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ permissions: {}

jobs:
linter:
uses: hoverkraft-tech/ci-github-common/.github/workflows/linter.yml@71b85947453f32b5d147ff3ab37351439a92d840 # 0.34.2
uses: hoverkraft-tech/ci-github-common/.github/workflows/linter.yml@4c9d51717dc04d823dac2dc9ac2857e7b3069454 # 0.35.0
permissions:
actions: read
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/__stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions: {}

jobs:
main:
uses: hoverkraft-tech/ci-github-common/.github/workflows/stale.yml@71b85947453f32b5d147ff3ab37351439a92d840 # 0.34.2
uses: hoverkraft-tech/ci-github-common/.github/workflows/stale.yml@4c9d51717dc04d823dac2dc9ac2857e7b3069454 # 0.35.0
permissions:
issues: write
pull-requests: write
2 changes: 1 addition & 1 deletion .github/workflows/__test-action-deploy-jekyll-jampack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ permissions: {}
jobs:
continuous-integration:
name: Continuous integration for "deploy/jekyll" action
uses: hoverkraft-tech/ci-github-nodejs/.github/workflows/continuous-integration.yml@9d465a03741b287db18b242e0ec46990888cc6a3 # 0.23.0
uses: hoverkraft-tech/ci-github-nodejs/.github/workflows/continuous-integration.yml@9f77c58db848451f244f78047fbf779c60bb8641 # 0.23.1
permissions:
contents: read
id-token: write
Expand Down
16 changes: 3 additions & 13 deletions .github/workflows/clean-deploy-argocd-app-of-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ jobs:
permissions:
contents: read
pull-requests: write
id-token: write # Needed for getting local workflow actions
steps:
- id: check-client-payload
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
Expand All @@ -75,12 +74,12 @@ jobs:
persist-credentials: false

- id: local-workflow-actions
uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@71b85947453f32b5d147ff3ab37351439a92d840 # 0.34.2
uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@4c9d51717dc04d823dac2dc9ac2857e7b3069454 # 0.35.0
with:
actions-path: actions

- id: get-manifest-files
uses: ./self-workflow/actions/argocd/get-manifest-files
uses: ./../self-workflow/actions/argocd/get-manifest-files
with:
environment: ${{ steps.check-client-payload.outputs.environment }}
repository: ${{ steps.check-client-payload.outputs.repository }}
Expand Down Expand Up @@ -116,7 +115,7 @@ jobs:
private-key: ${{ secrets.github-app-key }}
# jscpd:ignore-end

- uses: hoverkraft-tech/ci-github-common/actions/create-and-merge-pull-request@71b85947453f32b5d147ff3ab37351439a92d840 # 0.34.2
- uses: hoverkraft-tech/ci-github-common/actions/create-and-merge-pull-request@4c9d51717dc04d823dac2dc9ac2857e7b3069454 # 0.35.0
if: steps.remove-files.outputs.has-changes == 'true'
with:
github-token: ${{ steps.generate-token.outputs.token || secrets.github-token || github.token }}
Expand All @@ -127,12 +126,3 @@ jobs:
feat(${{ github.event.client_payload.repository }}): clean review apps

[skip ci]

# jscpd:ignore-start
- uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@71b85947453f32b5d147ff3ab37351439a92d840 # 0.34.2
if: always() && steps.local-workflow-actions.outputs.repository
with:
actions-path: actions
repository: ${{ steps.local-workflow-actions.outputs.repository }}
ref: ${{ steps.local-workflow-actions.outputs.ref }}
# jscpd:ignore-end
18 changes: 4 additions & 14 deletions .github/workflows/clean-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,9 @@ jobs:
deployments: write
issues: write
pull-requests: write
id-token: write # Needed for getting local workflow actions
steps:
- id: local-workflow-actions
uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@71b85947453f32b5d147ff3ab37351439a92d840 # 0.34.2
uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@4c9d51717dc04d823dac2dc9ac2857e7b3069454 # 0.35.0
with:
actions-path: actions

Expand Down Expand Up @@ -148,28 +147,19 @@ jobs:
owner: ${{ steps.prepare-cleaning.outputs.owner }}

- id: delete-deployment
uses: ./self-workflow/actions/deployment/delete
uses: ./../self-workflow/actions/deployment/delete
with:
token: ${{ steps.generate-token.outputs.token || secrets.github-token || github.token }}

- uses: ./self-workflow/actions/clean-deploy/repository-dispatch
- uses: ./../self-workflow/actions/clean-deploy/repository-dispatch
if: ${{ steps.delete-deployment.outputs.environments && steps.delete-deployment.outputs.environments != '[]' && inputs.clean-deploy-type == 'repository-dispatch' }}
with:
repository: ${{ steps.prepare-cleaning.outputs.repository }}
environment: ${{ fromJSON(steps.delete-deployment.outputs.environments)[0] }}
github-token: ${{ steps.generate-token.outputs.token || secrets.github-token || github.token }}

- uses: hoverkraft-tech/ci-github-common/actions/create-or-update-comment@71b85947453f32b5d147ff3ab37351439a92d840 # 0.34.2
- uses: hoverkraft-tech/ci-github-common/actions/create-or-update-comment@4c9d51717dc04d823dac2dc9ac2857e7b3069454 # 0.35.0
if: ${{ steps.delete-deployment.outputs.environments && steps.delete-deployment.outputs.environments != '[]' }}
with:
title: "Deployment(s) have been deleted :wastebasket:."
body: "The following deployment(s) have been deleted:\n\n- ${{ join(fromJSON(steps.delete-deployment.outputs.environments),'\n- ') }}"

# jscpd:ignore-start
- uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@71b85947453f32b5d147ff3ab37351439a92d840 # 0.34.2
if: always() && steps.local-workflow-actions.outputs.repository
with:
actions-path: actions
repository: ${{ steps.local-workflow-actions.outputs.repository }}
ref: ${{ steps.local-workflow-actions.outputs.ref }}
# jscpd:ignore-end
22 changes: 6 additions & 16 deletions .github/workflows/deploy-argocd-app-of-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ jobs:
permissions:
contents: read
pull-requests: write
id-token: write # Needed for getting local workflow actions
outputs:
deployment-id: ${{ steps.check-client-payload.outputs.deployment-id }}
repository: ${{ steps.check-client-payload.outputs.repository }}
Expand Down Expand Up @@ -140,7 +139,7 @@ jobs:
core.setOutput("initiated-by", initiatedBy);

- id: chart-variables
uses: hoverkraft-tech/ci-github-container/actions/helm/parse-chart-uri@e4bf7a12228a2a4b5993d2d36b99b4dd0ec80bf5 # 0.32.1
uses: hoverkraft-tech/ci-github-container/actions/helm/parse-chart-uri@e68cac9a52f0a24cd3800fc723dc4899f647e42b # 0.33.0
with:
uri: ${{ steps.check-client-payload.outputs.chart }}

Expand All @@ -149,19 +148,19 @@ jobs:
persist-credentials: false

- id: slugify-namespace
uses: hoverkraft-tech/ci-github-common/actions/slugify@71b85947453f32b5d147ff3ab37351439a92d840 # 0.34.2
uses: hoverkraft-tech/ci-github-common/actions/slugify@4c9d51717dc04d823dac2dc9ac2857e7b3069454 # 0.35.0
with:
value: ${{ format('{0}-{1}', steps.check-client-payload.outputs.repository, steps.check-client-payload.outputs.environment) }}

# jscpd:ignore-start
- id: local-workflow-actions
uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@71b85947453f32b5d147ff3ab37351439a92d840 # 0.34.2
uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@4c9d51717dc04d823dac2dc9ac2857e7b3069454 # 0.35.0
with:
actions-path: actions
# jscpd:ignore-end

- id: get-manifest-files
uses: ./self-workflow/actions/argocd/get-manifest-files
uses: ./../self-workflow/actions/argocd/get-manifest-files
with:
environment: ${{ steps.check-client-payload.outputs.environment }}
repository: ${{ steps.check-client-payload.outputs.repository }}
Expand Down Expand Up @@ -207,7 +206,7 @@ jobs:

await io.cp(manifestTemplateFile, manifestFile, { force: true });

- uses: ./self-workflow/actions/deploy/argocd-manifest-files
- uses: ./../self-workflow/actions/deploy/argocd-manifest-files
with:
deployment-id: ${{ steps.check-client-payload.outputs.deployment-id }}
application-repository: ${{ steps.check-client-payload.outputs.repository }}
Expand All @@ -229,7 +228,7 @@ jobs:
private-key: ${{ secrets.github-app-key }}
# jscpd:ignore-end

- uses: hoverkraft-tech/ci-github-common/actions/create-and-merge-pull-request@71b85947453f32b5d147ff3ab37351439a92d840 # 0.34.2
- uses: hoverkraft-tech/ci-github-common/actions/create-and-merge-pull-request@4c9d51717dc04d823dac2dc9ac2857e7b3069454 # 0.35.0
with:
github-token: ${{ steps.generate-token.outputs.token || secrets.github-token || github.token }}
branch: feat/deploy-${{ steps.slugify-namespace.outputs.result }}
Expand All @@ -239,12 +238,3 @@ jobs:
feat(${{ steps.check-client-payload.outputs.repository }}): deploy ${{ steps.chart-variables.outputs.version }} to ${{ steps.check-client-payload.outputs.environment }}"

[skip ci]

# jscpd:ignore-start
- uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@71b85947453f32b5d147ff3ab37351439a92d840 # 0.34.2
if: always() && steps.local-workflow-actions.outputs.repository
with:
actions-path: actions
repository: ${{ steps.local-workflow-actions.outputs.repository }}
ref: ${{ steps.local-workflow-actions.outputs.ref }}
# jscpd:ignore-end
25 changes: 6 additions & 19 deletions .github/workflows/deploy-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ jobs:
actions: read
contents: read
deployments: write
id-token: write # Needed for getting local workflow actions
issues: write
pull-requests: write
with:
Expand All @@ -163,7 +162,7 @@ jobs:
permissions:
contents: read
steps:
- uses: hoverkraft-tech/ci-github-common/actions/checkout@71b85947453f32b5d147ff3ab37351439a92d840 # 0.34.2
- uses: hoverkraft-tech/ci-github-common/actions/checkout@4c9d51717dc04d823dac2dc9ac2857e7b3069454 # 0.35.0
if: inputs.tag == ''
with:
fetch-depth: 0
Expand All @@ -176,7 +175,7 @@ jobs:

- id: get-issue-number
if: inputs.tag == '' && github.event_name == 'issue_comment'
uses: hoverkraft-tech/ci-github-common/actions/get-issue-number@71b85947453f32b5d147ff3ab37351439a92d840 # 0.34.2
uses: hoverkraft-tech/ci-github-common/actions/get-issue-number@4c9d51717dc04d823dac2dc9ac2857e7b3069454 # 0.35.0

- id: get-tag
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
Expand Down Expand Up @@ -241,7 +240,7 @@ jobs:
build-oci-images:
name: Build OCI images
needs: prepare-deploy
uses: hoverkraft-tech/ci-github-container/.github/workflows/docker-build-images.yml@e4bf7a12228a2a4b5993d2d36b99b4dd0ec80bf5 # 0.32.1
uses: hoverkraft-tech/ci-github-container/.github/workflows/docker-build-images.yml@e68cac9a52f0a24cd3800fc723dc4899f647e42b # 0.33.0
permissions:
contents: read
id-token: write
Expand Down Expand Up @@ -355,7 +354,7 @@ jobs:
core.setOutput('deploy-values', JSON.stringify(deployValues));

- id: release
uses: hoverkraft-tech/ci-github-container/actions/helm/release-chart@e4bf7a12228a2a4b5993d2d36b99b4dd0ec80bf5 # 0.32.1
uses: hoverkraft-tech/ci-github-container/actions/helm/release-chart@e68cac9a52f0a24cd3800fc723dc4899f647e42b # 0.33.0
with:
chart: ${{ inputs.chart-name }}
path: ${{ inputs.chart-path }}
Expand All @@ -368,8 +367,6 @@ jobs:
name: Deploy chart
runs-on: ${{ fromJson(inputs.runs-on) }}
needs: [deploy-start, prepare-deploy, release-chart]
permissions:
id-token: write # Needed for getting local workflow actions
steps:
- id: prepare-deployment
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
Expand Down Expand Up @@ -463,12 +460,12 @@ jobs:
# jscpd:ignore-end

- id: local-workflow-actions
uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@71b85947453f32b5d147ff3ab37351439a92d840 # 0.34.2
uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@4c9d51717dc04d823dac2dc9ac2857e7b3069454 # 0.35.0
with:
actions-path: actions

- if: inputs.deploy-type == 'helm-repository-dispatch'
uses: ./self-workflow/actions/deploy/helm-repository-dispatch
uses: ./../self-workflow/actions/deploy/helm-repository-dispatch
with:
deployment-id: ${{ needs.deploy-start.outputs.deployment-id }}
chart: ${{ needs.release-chart.outputs.chart }}
Expand All @@ -479,15 +476,6 @@ jobs:
github-token: ${{ steps.generate-token.outputs.token || secrets.github-token || github.token }}
initiated-by: ${{ github.actor }}

# jscpd:ignore-start
- uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@71b85947453f32b5d147ff3ab37351439a92d840 # 0.34.2
if: always() && steps.local-workflow-actions.outputs.repository
with:
actions-path: actions
repository: ${{ steps.local-workflow-actions.outputs.repository }}
ref: ${{ steps.local-workflow-actions.outputs.ref }}
# jscpd:ignore-end

deploy-finish:
name: Finish deploy
if: ${{ always() && needs.deploy-start.outputs.trigger }}
Expand All @@ -497,7 +485,6 @@ jobs:
actions: read
contents: read
deployments: write
id-token: write
issues: write
pull-requests: write
with:
Expand Down
16 changes: 3 additions & 13 deletions .github/workflows/deploy-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,35 +67,25 @@ jobs:
runs-on: ${{ fromJson(inputs.runs-on) }}
permissions:
contents: read
id-token: write # Needed for getting local workflow actions
outputs:
summary: ${{ steps.generate-summary.outputs.summary }}
steps:
- id: local-workflow-actions
uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@71b85947453f32b5d147ff3ab37351439a92d840 # 0.34.2
uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@4c9d51717dc04d823dac2dc9ac2857e7b3069454 # 0.35.0
with:
actions-path: actions

- uses: ./self-workflow/actions/check/url-ping
- uses: ./../self-workflow/actions/check/url-ping
id: ping
with:
url: ${{ inputs.url }}

- id: lighthouse
uses: ./self-workflow/actions/check/url-lighthouse
uses: ./../self-workflow/actions/check/url-lighthouse
with:
url: ${{ inputs.url }}
budget-path: ${{ inputs.budget-path }}

# jscpd:ignore-start
- uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@71b85947453f32b5d147ff3ab37351439a92d840 # 0.34.2
if: always() && steps.local-workflow-actions.outputs.repository
with:
actions-path: actions
repository: ${{ steps.local-workflow-actions.outputs.repository }}
ref: ${{ steps.local-workflow-actions.outputs.ref }}
# jscpd:ignore-end

- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
id: generate-summary
env:
Expand Down
Loading
Loading