diff --git a/.github/dependabot.yml b/.github/dependabot.yml index ee6084b..964a2d8 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -7,6 +7,8 @@ updates: interval: weekly day: friday time: "04:00" + cooldown: + default-days: 7 groups: docker-dependencies: patterns: @@ -21,6 +23,8 @@ updates: interval: weekly day: friday time: "04:00" + cooldown: + default-days: 7 groups: github-actions-dependencies: patterns: @@ -33,6 +37,8 @@ updates: interval: weekly day: friday time: "04:00" + cooldown: + default-days: 7 groups: npm-dependencies: patterns: @@ -45,3 +51,5 @@ updates: interval: weekly day: friday time: "04:00" + cooldown: + default-days: 7 diff --git a/.github/workflows/need-fix-to-issue.md b/.github/workflows/need-fix-to-issue.md index 46dcd5e..8670c13 100644 --- a/.github/workflows/need-fix-to-issue.md +++ b/.github/workflows/need-fix-to-issue.md @@ -66,7 +66,7 @@ jobs: **Tips:** -It is recommanded to add this trigger for this workflow: +It is recommended to add this trigger for this workflow: ```yaml workflow_dispatch: diff --git a/.github/workflows/semantic-pull-request.md b/.github/workflows/semantic-pull-request.md index b5fcfed..e83b32f 100644 --- a/.github/workflows/semantic-pull-request.md +++ b/.github/workflows/semantic-pull-request.md @@ -23,7 +23,7 @@ ## Overview -Workflow to ensure Pull Request provides semantic versionning assets: +Workflow to ensure Pull Request provides semantic versioning assets: - "Squash and merge" Pull Request strategy provides a valid commit message. Check that the title follows the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification. diff --git a/.github/workflows/semantic-pull-request.yml b/.github/workflows/semantic-pull-request.yml index 07cd7ba..91b092e 100644 --- a/.github/workflows/semantic-pull-request.yml +++ b/.github/workflows/semantic-pull-request.yml @@ -1,4 +1,4 @@ -# Workflow to ensure Pull Request provides semantic versionning assets: +# Workflow to ensure Pull Request provides semantic versioning assets: # # - "Squash and merge" Pull Request strategy provides a valid commit message. # Check that the title follows the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification. diff --git a/actions/checkout/action.yml b/actions/checkout/action.yml index d8437a1..939785b 100644 --- a/actions/checkout/action.yml +++ b/actions/checkout/action.yml @@ -33,18 +33,35 @@ runs: using: "composite" steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - if: github.event_name == 'issue_comment' + if: github.event_name == 'issue_comment' && inputs.persist-credentials == 'true' with: ref: refs/pull/${{ github.event.issue.number }}/head fetch-depth: ${{ inputs.fetch-depth }} lfs: ${{ inputs.lfs }} token: ${{ inputs.token || github.token }} - persist-credentials: ${{ inputs.persist-credentials == 'true' && 'true' || 'false' }} + persist-credentials: true - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - if: github.event_name != 'issue_comment' + if: github.event_name == 'issue_comment' && inputs.persist-credentials != 'true' + with: + ref: refs/pull/${{ github.event.issue.number }}/head + fetch-depth: ${{ inputs.fetch-depth }} + lfs: ${{ inputs.lfs }} + token: ${{ inputs.token || github.token }} + persist-credentials: false + + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + if: github.event_name != 'issue_comment' && inputs.persist-credentials == 'true' + with: + fetch-depth: ${{ inputs.fetch-depth }} + lfs: ${{ inputs.lfs }} + token: ${{ inputs.token || github.token }} + persist-credentials: true + + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + if: github.event_name != 'issue_comment' && inputs.persist-credentials != 'true' with: fetch-depth: ${{ inputs.fetch-depth }} lfs: ${{ inputs.lfs }} token: ${{ inputs.token || github.token }} - persist-credentials: ${{ inputs.persist-credentials == 'true' && 'true' || 'false' }} + persist-credentials: false diff --git a/actions/create-and-merge-pull-request/action.yml b/actions/create-and-merge-pull-request/action.yml index 0496ccc..94ffae9 100644 --- a/actions/create-and-merge-pull-request/action.yml +++ b/actions/create-and-merge-pull-request/action.yml @@ -67,8 +67,8 @@ runs: with: github-token: ${{ inputs.github-token }} script: | - let attemps = 0; - const maxAttemps = 10; + let attempts = 0; + const maxAttempts = 10; const pullNumberRaw = process.env.PULL_REQUEST_NUMBER ?? ''; if (!/^[0-9]+$/.test(pullNumberRaw)) { @@ -76,7 +76,7 @@ runs: } const pullNumber = Number.parseInt(pullNumberRaw, 10); - while (attemps < maxAttemps) { + while (attempts < maxAttempts) { const { data: { mergeable, mergeable_state } } = await github.rest.pulls.get({ owner: context.repo.owner, repo: context.repo.repo, @@ -91,7 +91,7 @@ runs: core.debug(`Pull request is not mergeable, mergeable_state: ${mergeable_state}`); await new Promise(resolve => setTimeout(resolve, 5000)); - attemps++; + attempts++; } core.error('Pull request is not mergeable'); @@ -110,11 +110,11 @@ runs: exit 1 fi - ATTEMPS=0 - MAX_ATTEMPS=10 + ATTEMPTS=0 + MAX_ATTEMPTS=10 REQUIRED_WORKFLOWS_ERROR="Required workflow" - while [ $ATTEMPS -lt $MAX_ATTEMPS ]; do + while [ $ATTEMPTS -lt $MAX_ATTEMPTS ]; do echo "::debug::Merging pull request #${PULL_REQUEST_NUMBER} for repository ${{ github.repository }}..." MERGE_OUTPUTS=$(gh pr merge -R "${{ github.repository }}" --rebase --admin "${PULL_REQUEST_NUMBER}" 2>&1) MERGE_EXIT_CODE=$? @@ -132,8 +132,8 @@ runs: echo "::debug::Pull request is not mergeable yet because some of required workflow check issues, retrying in 5 seconds..." sleep 5 - ATTEMPS=$((ATTEMPS+1)) + ATTEMPTS=$((ATTEMPTS+1)) done - echo "::error::Failed to merge pull request after $MAX_ATTEMPS attemps: $MERGE_OUTPUTS" + echo "::error::Failed to merge pull request after $MAX_ATTEMPTS attempts: $MERGE_OUTPUTS" exit 1 diff --git a/actions/get-github-actions-bot-user/README.md b/actions/get-github-actions-bot-user/README.md index c316a90..519c6d0 100644 --- a/actions/get-github-actions-bot-user/README.md +++ b/actions/get-github-actions-bot-user/README.md @@ -24,8 +24,8 @@ ## Overview -Action to get the GitHub Actions bot user informations. -Usefull to commit, comment, etc. +Action to get the GitHub Actions bot user information. +Useful to commit, comment, etc. diff --git a/actions/get-github-actions-bot-user/action.yml b/actions/get-github-actions-bot-user/action.yml index 0efa561..49ec94c 100644 --- a/actions/get-github-actions-bot-user/action.yml +++ b/actions/get-github-actions-bot-user/action.yml @@ -1,7 +1,7 @@ name: "Get GitHub Actions bot user" description: | - Action to get the GitHub Actions bot user informations. - Usefull to commit, comment, etc. + Action to get the GitHub Actions bot user information. + Useful to commit, comment, etc. author: hoverkraft branding: icon: user-check @@ -20,4 +20,4 @@ runs: steps: - id: get-bot-user shell: bash - run: 'echo "Get GitHub Actions bot user informations"' + run: 'echo "Get GitHub Actions bot user information"' diff --git a/actions/get-matrix-outputs/README.md b/actions/get-matrix-outputs/README.md index 54f4d7f..e3a78ce 100644 --- a/actions/get-matrix-outputs/README.md +++ b/actions/get-matrix-outputs/README.md @@ -1,9 +1,9 @@ -# ![Icon](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXItZG93bmxvYWQtY2xvdWQiIGNvbG9yPSJibHVlIj48cG9seWxpbmUgcG9pbnRzPSI4IDE3IDEyIDIxIDE2IDE3Ij48L3BvbHlsaW5lPjxsaW5lIHgxPSIxMiIgeTE9IjEyIiB4Mj0iMTIiIHkyPSIyMSI+PC9saW5lPjxwYXRoIGQ9Ik0yMC44OCAxOC4wOUE1IDUgMCAwIDAgMTggOWgtMS4yNkE4IDggMCAxIDAgMyAxNi4yOSI+PC9wYXRoPjwvc3ZnPg==) GitHub Action: Get matrix ouput +# ![Icon](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXItZG93bmxvYWQtY2xvdWQiIGNvbG9yPSJibHVlIj48cG9seWxpbmUgcG9pbnRzPSI4IDE3IDEyIDIxIDE2IDE3Ij48L3BvbHlsaW5lPjxsaW5lIHgxPSIxMiIgeTE9IjEyIiB4Mj0iMTIiIHkyPSIyMSI+PC9saW5lPjxwYXRoIGQ9Ik0yMC44OCAxOC4wOUE1IDUgMCAwIDAgMTggOWgtMS4yNkE4IDggMCAxIDAgMyAxNi4yOSI+PC9wYXRoPjwvc3ZnPg==) GitHub Action: Get matrix outputs
- Get matrix ouput + Get matrix outputs
--- @@ -12,7 +12,7 @@ -[![Marketplace](https://img.shields.io/badge/Marketplace-get--matrix--ouput-blue?logo=github-actions)](https://github.com/marketplace/actions/get-matrix-ouput) +[![Marketplace](https://img.shields.io/badge/Marketplace-get--matrix--outputs-blue?logo=github-actions)](https://github.com/marketplace/actions/get-matrix-outputs) [![Release](https://img.shields.io/github/v/release/hoverkraft-tech/ci-github-common)](https://github.com/hoverkraft-tech/ci-github-common/releases) [![License](https://img.shields.io/github/license/hoverkraft-tech/ci-github-common)](http://choosealicense.com/licenses/mit/) [![Stars](https://img.shields.io/github/stars/hoverkraft-tech/ci-github-common?style=social)](https://img.shields.io/github/stars/hoverkraft-tech/ci-github-common?style=social) @@ -24,7 +24,7 @@ ## Overview -Download matrix ouputs from artifacts, because GitHub Action does not handle job outputs for matrix. +Download matrix outputs from artifacts, because GitHub Action does not handle job outputs for matrix. Workaround for . diff --git a/actions/get-matrix-outputs/action.yml b/actions/get-matrix-outputs/action.yml index e5a3aa5..4f831db 100644 --- a/actions/get-matrix-outputs/action.yml +++ b/actions/get-matrix-outputs/action.yml @@ -1,6 +1,6 @@ -name: "Get matrix ouput" +name: "Get matrix outputs" description: | - Download matrix ouputs from artifacts, because GitHub Action does not handle job outputs for matrix. + Download matrix outputs from artifacts, because GitHub Action does not handle job outputs for matrix. Workaround for https://github.com/orgs/community/discussions/26639. author: hoverkraft branding: diff --git a/actions/set-matrix-output/README.md b/actions/set-matrix-output/README.md index c547bb1..7937bfa 100644 --- a/actions/set-matrix-output/README.md +++ b/actions/set-matrix-output/README.md @@ -1,9 +1,9 @@ -# ![Icon](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXItdXBsb2FkLWNsb3VkIiBjb2xvcj0iYmx1ZSI+PHBvbHlsaW5lIHBvaW50cz0iMTYgMTYgMTIgMTIgOCAxNiI+PC9wb2x5bGluZT48bGluZSB4MT0iMTIiIHkxPSIxMiIgeDI9IjEyIiB5Mj0iMjEiPjwvbGluZT48cGF0aCBkPSJNMjAuMzkgMTguMzlBNSA1IDAgMCAwIDE4IDloLTEuMjZBOCA4IDAgMSAwIDMgMTYuMyI+PC9wYXRoPjxwb2x5bGluZSBwb2ludHM9IjE2IDE2IDEyIDEyIDggMTYiPjwvcG9seWxpbmU+PC9zdmc+) GitHub Action: Set matrix ouput +# ![Icon](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXItdXBsb2FkLWNsb3VkIiBjb2xvcj0iYmx1ZSI+PHBvbHlsaW5lIHBvaW50cz0iMTYgMTYgMTIgMTIgOCAxNiI+PC9wb2x5bGluZT48bGluZSB4MT0iMTIiIHkxPSIxMiIgeDI9IjEyIiB5Mj0iMjEiPjwvbGluZT48cGF0aCBkPSJNMjAuMzkgMTguMzlBNSA1IDAgMCAwIDE4IDloLTEuMjZBOCA4IDAgMSAwIDMgMTYuMyI+PC9wYXRoPjxwb2x5bGluZSBwb2ludHM9IjE2IDE2IDEyIDEyIDggMTYiPjwvcG9seWxpbmU+PC9zdmc+) GitHub Action: Set matrix output
- Set matrix ouput + Set matrix output
--- @@ -12,7 +12,7 @@ -[![Marketplace](https://img.shields.io/badge/Marketplace-set--matrix--ouput-blue?logo=github-actions)](https://github.com/marketplace/actions/set-matrix-ouput) +[![Marketplace](https://img.shields.io/badge/Marketplace-set--matrix--output-blue?logo=github-actions)](https://github.com/marketplace/actions/set-matrix-output) [![Release](https://img.shields.io/github/v/release/hoverkraft-tech/ci-github-common)](https://github.com/hoverkraft-tech/ci-github-common/releases) [![License](https://img.shields.io/github/license/hoverkraft-tech/ci-github-common)](http://choosealicense.com/licenses/mit/) [![Stars](https://img.shields.io/github/stars/hoverkraft-tech/ci-github-common?style=social)](https://img.shields.io/github/stars/hoverkraft-tech/ci-github-common?style=social) @@ -24,7 +24,7 @@ ## Overview -Set matrix ouput in file to be uploaded as artifacts, because GitHub Action does not handle job outputs for matrix. +Set matrix output in file to be uploaded as artifacts, because GitHub Action does not handle job outputs for matrix. Workaround for . diff --git a/actions/set-matrix-output/action.yml b/actions/set-matrix-output/action.yml index 2b5b3c9..09fd0c2 100644 --- a/actions/set-matrix-output/action.yml +++ b/actions/set-matrix-output/action.yml @@ -1,6 +1,6 @@ -name: "Set matrix ouput" +name: "Set matrix output" description: | - Set matrix ouput in file to be uploaded as artifacts, because GitHub Action does not handle job outputs for matrix. + Set matrix output in file to be uploaded as artifacts, because GitHub Action does not handle job outputs for matrix. Workaround for https://github.com/orgs/community/discussions/26639. author: hoverkraft branding: