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
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ updates:
interval: weekly
day: friday
time: "04:00"
cooldown:
default-days: 7
groups:
docker-dependencies:
patterns:
Expand All @@ -21,6 +23,8 @@ updates:
interval: weekly
day: friday
time: "04:00"
cooldown:
default-days: 7
groups:
github-actions-dependencies:
patterns:
Expand All @@ -33,6 +37,8 @@ updates:
interval: weekly
day: friday
time: "04:00"
cooldown:
default-days: 7
groups:
npm-dependencies:
patterns:
Expand All @@ -45,3 +51,5 @@ updates:
interval: weekly
day: friday
time: "04:00"
cooldown:
default-days: 7
2 changes: 1 addition & 1 deletion .github/workflows/need-fix-to-issue.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/semantic-pull-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/semantic-pull-request.yml
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
25 changes: 21 additions & 4 deletions actions/checkout/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
18 changes: 9 additions & 9 deletions actions/create-and-merge-pull-request/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ 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)) {
throw new Error(`Invalid pull request number: ${pullNumberRaw}`);
}
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,
Expand All @@ -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');
Expand All @@ -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=$?
Expand All @@ -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
4 changes: 2 additions & 2 deletions actions/get-github-actions-bot-user/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<!-- overview:end -->

Expand Down
6 changes: 3 additions & 3 deletions actions/get-github-actions-bot-user/action.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"'
8 changes: 4 additions & 4 deletions actions/get-matrix-outputs/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!-- header:start -->

# ![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

<div align="center">
<img src="../../.github/logo.svg" width="60px" align="center" alt="Get matrix ouput" />
<img src="../../.github/logo.svg" width="60px" align="center" alt="Get matrix outputs" />
</div>

---
Expand All @@ -12,7 +12,7 @@

<!-- badges:start -->

[![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)
Expand All @@ -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 <https://github.com/orgs/community/discussions/26639>.

<!-- overview:end -->
Expand Down
4 changes: 2 additions & 2 deletions actions/get-matrix-outputs/action.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
8 changes: 4 additions & 4 deletions actions/set-matrix-output/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!-- header:start -->

# ![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

<div align="center">
<img src="../../.github/logo.svg" width="60px" align="center" alt="Set matrix ouput" />
<img src="../../.github/logo.svg" width="60px" align="center" alt="Set matrix output" />
</div>

---
Expand All @@ -12,7 +12,7 @@

<!-- badges:start -->

[![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)
Expand All @@ -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 <https://github.com/orgs/community/discussions/26639>.

<!-- overview:end -->
Expand Down
4 changes: 2 additions & 2 deletions actions/set-matrix-output/action.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
Loading