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@2334d395217f9811699dbd4ace9d8559e4d99e0d # 0.37.3
uses: hoverkraft-tech/ci-github-common/.github/workflows/greetings.yml@3a27d31e9ccefbe9609cc9165017ed100ff34a22 # 0.38.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@2334d395217f9811699dbd4ace9d8559e4d99e0d # 0.37.3
uses: hoverkraft-tech/ci-github-common/.github/workflows/need-fix-to-issue.yml@3a27d31e9ccefbe9609cc9165017ed100ff34a22 # 0.38.0
permissions:
contents: read
issues: write
Expand Down
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@2334d395217f9811699dbd4ace9d8559e4d99e0d # 0.37.3
uses: hoverkraft-tech/ci-github-common/.github/workflows/semantic-pull-request.yml@3a27d31e9ccefbe9609cc9165017ed100ff34a22 # 0.38.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 @@ -12,7 +12,7 @@ permissions: {}

jobs:
linter:
uses: hoverkraft-tech/ci-github-common/.github/workflows/linter.yml@2334d395217f9811699dbd4ace9d8559e4d99e0d # 0.37.3
uses: hoverkraft-tech/ci-github-common/.github/workflows/linter.yml@3a27d31e9ccefbe9609cc9165017ed100ff34a22 # 0.38.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@2334d395217f9811699dbd4ace9d8559e4d99e0d # 0.37.3
uses: hoverkraft-tech/ci-github-common/.github/workflows/stale.yml@3a27d31e9ccefbe9609cc9165017ed100ff34a22 # 0.38.0
permissions:
issues: write
pull-requests: write
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
initiated-by: ci/test-user

- name: Assert - Check generated files are valid YAML
uses: mikefarah/yq@1b9b4ac5187171d2e5e3129be0cfa827c7f9d53d # v4.53.3
uses: mikefarah/yq@c14f446382944492701b16c1ddb48bb9dbe683e3 # v4.53.6
with:
cmd: |
echo "Check application file"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/__test-action-release-delete.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
pull-requests: read
steps:
- name: Arrange - Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/__test-action-release-get-configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
CONFIG_PATH: ${{ steps.existing-config.outputs.config-path }}
IS_GENERATED: ${{ steps.existing-config.outputs.is-generated }}
with:
script: |
const assert = require('node:assert');
Expand All @@ -44,6 +45,7 @@ jobs:
const configPath = process.env.CONFIG_PATH;

assert.equal(configPath, 'release-config.yml');
assert.equal(process.env.IS_GENERATED, 'false');

const absoluteConfigPath = path.resolve(workspace, '.github', configPath);
assert.ok(fs.existsSync(absoluteConfigPath), `Expected config to exist at ${absoluteConfigPath}`);
Expand All @@ -59,6 +61,7 @@ jobs:
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
CONFIG_PATH: ${{ steps.generated-config.outputs.config-path }}
IS_GENERATED: ${{ steps.generated-config.outputs.is-generated }}
with:
script: |
const assert = require('node:assert');
Expand All @@ -70,6 +73,7 @@ jobs:
const absoluteConfigPath = path.resolve(workspace, '.github', configPath);
const configContent = fs.readFileSync(absoluteConfigPath, 'utf8');

assert.equal(process.env.IS_GENERATED, 'true');
assert.notEqual(configPath, 'release-configs/get-configuration.yml');
assert.ok(configPath.endsWith('/release-drafter/get-configuration.yml') || configPath === '../release-drafter/get-configuration.yml' || configPath.includes('/release-drafter/get-configuration.yml'));
assert.ok(fs.existsSync(absoluteConfigPath), `Expected generated config to exist at ${absoluteConfigPath}`);
Expand All @@ -78,3 +82,27 @@ jobs:
assert.ok(configContent.includes(' - "actions/release/get-configuration"'), 'Expected working directory include path in generated config');
assert.ok(configContent.includes('name-template: "Version get-configuration - $RESOLVED_VERSION"'), 'Expected working-directory-specific name template');
assert.ok(configContent.includes('tag-prefix: "get-configuration-"'), 'Expected working-directory-specific tag prefix');
assert.ok(configContent.includes('## New Contributors'), 'Expected a new contributors section');
assert.ok(configContent.includes('$NEW_CONTRIBUTORS'), 'Expected the new contributors template variable');
assert.ok(configContent.includes('no-new-contributor-template: "_No new contributors in this release._"'), 'Expected an explicit no-new-contributors placeholder');
assert.ok(configContent.includes('change-authors-final-separator: " and "'), 'Expected co-authors to use a natural final separator');
assert.ok(configContent.includes('title: "Breaking Changes"'), 'Expected a breaking changes category');
assert.ok(configContent.includes('breaking: true'), 'Expected conventional breaking changes to trigger a major release');
assert.ok(configContent.includes('title: "Dependency Updates"'), 'Expected a dependency updates category');
assert.ok(configContent.includes('collapse-after: 3'), 'Expected long dependency sections to collapse');
assert.ok(configContent.includes('title: "Features"'), 'Expected a features category');
assert.ok(configContent.includes('type: "feat"'), 'Expected conventional features to trigger a minor release');
assert.ok(configContent.includes('title: "Other Changes"'), 'Expected a fallback category');
assert.ok(configContent.includes('semver-increment: major'), 'Expected breaking changes to increment major');
assert.ok(configContent.includes('semver-increment: minor'), 'Expected features to increment minor');
assert.ok(configContent.includes('semver-increment: patch'), 'Expected other changes to increment patch');
assert.ok(!configContent.includes('type: "version-resolver"'), 'Expected changelog categories to resolve semantic versions directly');
assert.ok(!configContent.includes('release-major'), 'Expected version resolution not to depend on release labels');
assert.ok(configContent.includes('autolabeler:\n'), 'Expected an autolabeler configuration');
assert.ok(configContent.includes('label: "type: breaking"'), 'Expected breaking changes to be labeled');
assert.ok(configContent.includes('label: "type: feature"'), 'Expected features to be labeled');
assert.ok(configContent.includes('label: "type: dependencies"'), 'Expected dependency updates to be labeled');
assert.ok(configContent.includes('label: "type: fix"'), 'Expected fixes to be labeled');
assert.ok(configContent.includes('label: "type: performance"'), 'Expected performance changes to be labeled');
assert.ok(configContent.includes('label: "type: documentation"'), 'Expected documentation changes to be labeled');
assert.ok(configContent.includes('label: "type: maintenance"'), 'Expected maintenance changes to be labeled');
4 changes: 2 additions & 2 deletions .github/workflows/clean-deploy-argocd-app-of-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
persist-credentials: false

- id: local-workflow-actions
uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@2334d395217f9811699dbd4ace9d8559e4d99e0d # 0.37.3
uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@3a27d31e9ccefbe9609cc9165017ed100ff34a22 # 0.38.0
with:
actions-path: actions

Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
private-key: ${{ secrets.github-app-key }} # zizmor: ignore[secrets-outside-env] reusable workflow token override is intentional
# jscpd:ignore-end

- uses: hoverkraft-tech/ci-github-common/actions/create-and-merge-pull-request@2334d395217f9811699dbd4ace9d8559e4d99e0d # 0.37.3
- uses: hoverkraft-tech/ci-github-common/actions/create-and-merge-pull-request@3a27d31e9ccefbe9609cc9165017ed100ff34a22 # 0.38.0
if: steps.remove-files.outputs.has-changes == 'true'
with:
github-token: ${{ steps.generate-token.outputs.token || secrets.github-token || github.token }} # zizmor: ignore[secrets-outside-env] reusable workflow token override is intentional
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/clean-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ jobs:
pull-requests: write
steps:
- id: local-workflow-actions
uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@2334d395217f9811699dbd4ace9d8559e4d99e0d # 0.37.3
uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@3a27d31e9ccefbe9609cc9165017ed100ff34a22 # 0.38.0
with:
actions-path: actions

Expand Down Expand Up @@ -157,7 +157,7 @@ jobs:
environment: ${{ fromJSON(steps.delete-deployment.outputs.environments)[0] }}
github-token: ${{ steps.generate-token.outputs.token || secrets.github-token || github.token }} # zizmor: ignore[secrets-outside-env] reusable workflow token override is intentional

- uses: hoverkraft-tech/ci-github-common/actions/create-or-update-comment@2334d395217f9811699dbd4ace9d8559e4d99e0d # 0.37.3
- uses: hoverkraft-tech/ci-github-common/actions/create-or-update-comment@3a27d31e9ccefbe9609cc9165017ed100ff34a22 # 0.38.0
if: ${{ steps.delete-deployment.outputs.environments && steps.delete-deployment.outputs.environments != '[]' }}
with:
title: "Deployment(s) have been deleted :wastebasket:."
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-argocd-app-of-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ jobs:
persist-credentials: false

- id: slugify-namespace
uses: hoverkraft-tech/ci-github-common/actions/slugify@2334d395217f9811699dbd4ace9d8559e4d99e0d # 0.37.3
uses: hoverkraft-tech/ci-github-common/actions/slugify@3a27d31e9ccefbe9609cc9165017ed100ff34a22 # 0.38.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@2334d395217f9811699dbd4ace9d8559e4d99e0d # 0.37.3
uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@3a27d31e9ccefbe9609cc9165017ed100ff34a22 # 0.38.0
with:
actions-path: actions
# jscpd:ignore-end
Expand Down Expand Up @@ -232,7 +232,7 @@ jobs:
private-key: ${{ secrets.github-app-key }} # zizmor: ignore[secrets-outside-env] reusable workflow token override is intentional
# jscpd:ignore-end

- uses: hoverkraft-tech/ci-github-common/actions/create-and-merge-pull-request@2334d395217f9811699dbd4ace9d8559e4d99e0d # 0.37.3
- uses: hoverkraft-tech/ci-github-common/actions/create-and-merge-pull-request@3a27d31e9ccefbe9609cc9165017ed100ff34a22 # 0.38.0
with:
github-token: ${{ steps.generate-token.outputs.token || secrets.github-token || github.token }} # zizmor: ignore[secrets-outside-env] reusable workflow token override is intentional
branch: feat/deploy-${{ steps.slugify-namespace.outputs.result }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ jobs:
permissions:
contents: read
steps:
- uses: hoverkraft-tech/ci-github-common/actions/checkout@2334d395217f9811699dbd4ace9d8559e4d99e0d # 0.37.3
- uses: hoverkraft-tech/ci-github-common/actions/checkout@3a27d31e9ccefbe9609cc9165017ed100ff34a22 # 0.38.0
if: inputs.tag == ''
with:
fetch-depth: 0
Expand All @@ -212,7 +212,7 @@ jobs:

- id: get-issue-number
if: inputs.tag == '' && github.event_name == 'issue_comment'
uses: hoverkraft-tech/ci-github-common/actions/get-issue-number@2334d395217f9811699dbd4ace9d8559e4d99e0d # 0.37.3
uses: hoverkraft-tech/ci-github-common/actions/get-issue-number@3a27d31e9ccefbe9609cc9165017ed100ff34a22 # 0.38.0

- id: get-tag
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
Expand Down Expand Up @@ -554,7 +554,7 @@ jobs:
# jscpd:ignore-end

- id: local-workflow-actions
uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@2334d395217f9811699dbd4ace9d8559e4d99e0d # 0.37.3
uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@3a27d31e9ccefbe9609cc9165017ed100ff34a22 # 0.38.0
with:
actions-path: actions

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
summary: ${{ steps.generate-summary.outputs.summary }}
steps:
- id: local-workflow-actions
uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@2334d395217f9811699dbd4ace9d8559e4d99e0d # 0.37.3
uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@3a27d31e9ccefbe9609cc9165017ed100ff34a22 # 0.38.0
with:
actions-path: actions

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-finish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
environment: ${{ steps.get-finished-deployment.outputs.environment }}
steps:
- id: local-workflow-actions
uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@2334d395217f9811699dbd4ace9d8559e4d99e0d # 0.37.3
uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@3a27d31e9ccefbe9609cc9165017ed100ff34a22 # 0.38.0
with:
actions-path: actions

Expand Down Expand Up @@ -169,7 +169,7 @@ jobs:
return core.setOutput("extra", JSON.stringify(extra));

- id: local-workflow-actions
uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@2334d395217f9811699dbd4ace9d8559e4d99e0d # 0.37.3
uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@3a27d31e9ccefbe9609cc9165017ed100ff34a22 # 0.38.0
with:
actions-path: actions

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
}

- id: local-workflow-actions
uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@2334d395217f9811699dbd4ace9d8559e4d99e0d # 0.37.3
uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@3a27d31e9ccefbe9609cc9165017ed100ff34a22 # 0.38.0
with:
actions-path: actions

Expand All @@ -121,7 +121,7 @@ jobs:
deployment-id: ${{ steps.create-deployment.outputs.deployment-id }}
steps:
- id: local-workflow-actions
uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@2334d395217f9811699dbd4ace9d8559e4d99e0d # 0.37.3
uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@3a27d31e9ccefbe9609cc9165017ed100ff34a22 # 0.38.0
with:
actions-path: actions

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/finish-deploy-argocd-app-of-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ jobs:

- id: local-workflow-actions
if: always()
uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@2334d395217f9811699dbd4ace9d8559e4d99e0d # 0.37.3
uses: hoverkraft-tech/ci-github-common/actions/local-workflow-actions@3a27d31e9ccefbe9609cc9165017ed100ff34a22 # 0.38.0
with:
actions-path: actions

Expand Down
Loading
Loading