Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: FSJO/ArduinoHttpClient
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: arduino-libraries/ArduinoHttpClient
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Jun 28, 2020

  1. ContentLength can go over 2 byte int

    Converted int to long to allow for more then 65535 bytes in length
    Park0 authored Jun 28, 2020
    Copy the full SHA
    208dfec View commit details
  2. ContentLength can go over 2 byte int

    Converted int to long to allow for more then 65535 bytes in length
    Park0 authored Jun 28, 2020
    Copy the full SHA
    0fac9f0 View commit details

Commits on Feb 26, 2021

  1. Fix -Wlogical-not-parentheses warning (arduino-libraries#79)

    * Fix -Wlogical-not-parentheses warning
    
    The warning occurs because `operator!()` has higher precedence than `operator>()`.
    
    Alternatively, we can use:
    ```
    iClient->connect(iServerAddress, iServerPort) <= 0
    ```
    vaipatel authored Feb 26, 2021
    Copy the full SHA
    9a5afdf View commit details

Commits on Apr 12, 2021

  1. Configure Dependabot to check for outdated actions used in workflows

    Dependabot will periodically check the versions of all actions used in the repository's workflows. If any are found to
    be outdated, it will submit a pull request to update them.
    NOTE: Dependabot's PRs will sometimes try to pin to the patch version of the action (e.g., updating `uses: foo/bar@v1`
    to `uses: foo/bar@v2.3.4`). When the action author has provided a major version ref, use that instead
    (e.g., `uses: foo/bar@v2`). Dependabot will automatically close its PR once the workflow has been updated.
    More information:
    https://docs.github.com/en/github/administering-a-repository/keeping-your-actions-up-to-date-with-dependabot
    per1234 committed Apr 12, 2021
    Copy the full SHA
    05b7dfe View commit details
  2. Add CI workflow to check for commonly misspelled words

    On every push, pull request, and periodically, use the codespell-project/actions-codespell action to check for commonly
    misspelled words.
    
    In the event of a false positive, the problematic word should be added, in all lowercase, to the ignore-words-list field
    of ./.codespellrc. Regardless of the case of the word in the false positive, it must be in all lowercase in the ignore
    list. The ignore list is comma-separated with no spaces.
    per1234 committed Apr 12, 2021
    Copy the full SHA
    42d8a20 View commit details
  3. Copy the full SHA
    e9897fc View commit details
  4. Add CI workflow to do Arduino project-specific linting

    On every push, pull request, and periodically, run Arduino Lint to check for common problems not related to the project
    code.
    per1234 committed Apr 12, 2021
    Copy the full SHA
    0d23503 View commit details
  5. Add "smoke test" examples compilation CI workflow

    On every push or pull request that affects library source or example files, and periodically, compile all example
    sketches for the specified boards.
    per1234 committed Apr 12, 2021
    Copy the full SHA
    d07192a View commit details
  6. Report changes in memory usage that would result from merging a PR

    On creation or commit to a pull request, a report of the resulting change in memory usage of the examples will be
    commented to the PR thread.
    per1234 committed Apr 12, 2021
    Copy the full SHA
    b9db038 View commit details

Commits on Apr 14, 2021

  1. Merge pull request arduino-libraries#102 from arduino-libraries/ci

    Use GitHub Actions for continuous integration
    aentinger authored Apr 14, 2021
    Copy the full SHA
    1751e10 View commit details

Commits on Jan 10, 2022

  1. Add GitHub Actions workflow to synchronize with shared repository lab…

    …els (arduino-libraries#120)
    
    On every push that changes relevant files, and periodically, configure the repository's issue and pull request labels
    according to the universal, shared, and local label configuration files.
    per1234 authored Jan 10, 2022
    Copy the full SHA
    c014e0c View commit details

Commits on Jan 25, 2022

  1. Copy the full SHA
    09c5309 View commit details

Commits on Mar 1, 2022

  1. Reduce timeout from 1000ms to 100ms

    Using this with the Arduino `WiFiClient` makes simple requests really slow. Reduce the timeout in order to make it faster.
    carbotaniuman authored Mar 1, 2022
    Copy the full SHA
    527967d View commit details

Commits on Mar 2, 2022

  1. Bump actions/checkout from 2 to 3

    Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
    - [Release notes](https://github.com/actions/checkout/releases)
    - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
    - [Commits](actions/checkout@v2...v3)
    
    ---
    updated-dependencies:
    - dependency-name: actions/checkout
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Mar 2, 2022
    Copy the full SHA
    2b74b7a View commit details
  2. Merge pull request arduino-libraries#126 from arduino-libraries/depen…

    …dabot/github_actions/actions/checkout-3
    
    Bump actions/checkout from 2 to 3
    per1234 authored Mar 2, 2022
    Copy the full SHA
    9b83da4 View commit details

Commits on Apr 8, 2022

  1. Bump actions/upload-artifact from 2 to 3

    Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3.
    - [Release notes](https://github.com/actions/upload-artifact/releases)
    - [Commits](actions/upload-artifact@v2...v3)
    
    ---
    updated-dependencies:
    - dependency-name: actions/upload-artifact
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Apr 8, 2022
    Copy the full SHA
    533711d View commit details
  2. Bump actions/download-artifact from 2 to 3

    Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 2 to 3.
    - [Release notes](https://github.com/actions/download-artifact/releases)
    - [Commits](actions/download-artifact@v2...v3)
    
    ---
    updated-dependencies:
    - dependency-name: actions/download-artifact
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Apr 8, 2022
    Copy the full SHA
    033387f View commit details

Commits on Apr 11, 2022

  1. Merge pull request arduino-libraries#132 from arduino-libraries/depen…

    …dabot/github_actions/actions/download-artifact-3
    
    Bump actions/download-artifact from 2 to 3
    per1234 authored Apr 11, 2022
    Copy the full SHA
    84e1d2f View commit details
  2. Merge pull request arduino-libraries#131 from arduino-libraries/depen…

    …dabot/github_actions/actions/upload-artifact-3
    
    Bump actions/upload-artifact from 2 to 3
    per1234 authored Apr 11, 2022
    Copy the full SHA
    31b4947 View commit details

Commits on Apr 25, 2022

  1. Remove superfluous and broken manifest file (arduino-libraries#133)

    `library.json` is PlatformIO's native library manifest file but Arduino's `library.properties` is also supported by
    PlatformIO:
    
    https://docs.platformio.org/en/latest/librarymanager/creating.html#creating-library
    
    The `library.json` file was missing the required `version` field:
    
    https://docs.platformio.org/en/latest/librarymanager/config.html#version
    
    Although it could be added, experience with other libraries indicates that it is not really realistic to expect two
    manifest files to be properly maintained.
    
    Since the Arduino development software and the Arduino Library Manager requires `library.properties`, if we are to have
    only one the choice of keeping `library.properties` and removing `library.json` is clear.
    per1234 authored Apr 25, 2022
    Copy the full SHA
    b7fe7f7 View commit details

Commits on Oct 12, 2022

  1. Bump geekyeggo/delete-artifact from 1 to 2

    Bumps [geekyeggo/delete-artifact](https://github.com/geekyeggo/delete-artifact) from 1 to 2.
    - [Release notes](https://github.com/geekyeggo/delete-artifact/releases)
    - [Commits](GeekyEggo/delete-artifact@v1...v2)
    
    ---
    updated-dependencies:
    - dependency-name: geekyeggo/delete-artifact
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Oct 12, 2022
    Copy the full SHA
    1f50562 View commit details
  2. Merge pull request arduino-libraries#142 from arduino-libraries/depen…

    …dabot/github_actions/geekyeggo/delete-artifact-2
    
    Bump geekyeggo/delete-artifact from 1 to 2
    per1234 authored Oct 12, 2022
    Copy the full SHA
    ded5cdd View commit details

Commits on Oct 24, 2022

  1. Bump carlosperate/download-file-action from 1 to 2

    Bumps [carlosperate/download-file-action](https://github.com/carlosperate/download-file-action) from 1 to 2.
    - [Release notes](https://github.com/carlosperate/download-file-action/releases)
    - [Commits](carlosperate/download-file-action@v1...v2)
    
    ---
    updated-dependencies:
    - dependency-name: carlosperate/download-file-action
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Oct 24, 2022
    Copy the full SHA
    8fc4883 View commit details

Commits on Oct 25, 2022

  1. Merge pull request arduino-libraries#144 from arduino-libraries/depen…

    …dabot/github_actions/carlosperate/download-file-action-2
    
    Bump carlosperate/download-file-action from 1 to 2
    per1234 authored Oct 25, 2022
    Copy the full SHA
    6dc4867 View commit details

Commits on Apr 9, 2023

  1. Make sure to use HttpClient when upgrading the connection for websockets

    Using WebSocketClient::begin I got into problems where `status = responseStatusCode();` would be trying to read the HTTP header, but because both HttpClient and WebSocketClient have a read function, the read from WebSocketClient was used, which returns a bunch of gibberish. This caused the WebSocket to think that the connection was not successfully upgraded.
    tim-vandecasteele committed Apr 9, 2023
    Copy the full SHA
    8566fb4 View commit details

Commits on Jul 17, 2023

  1. Release v0.5.0.

    aentinger authored Jul 17, 2023
    Copy the full SHA
    0a1a8ab View commit details

Commits on Aug 5, 2023

  1. Add ability to set response wait time

    Leonardo José authored Aug 5, 2023
    Copy the full SHA
    b93e3d2 View commit details
  2. Add getter and setter functions

    Leonardo José authored Aug 5, 2023
    Copy the full SHA
    9b3987c View commit details
  3. Replace delay constant by variable

    Leonardo José authored Aug 5, 2023
    Copy the full SHA
    c490dde View commit details

Commits on Sep 4, 2023

  1. Bump actions/checkout from 3 to 4

    Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
    - [Release notes](https://github.com/actions/checkout/releases)
    - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
    - [Commits](actions/checkout@v3...v4)
    
    ---
    updated-dependencies:
    - dependency-name: actions/checkout
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Sep 4, 2023
    Copy the full SHA
    42e8f10 View commit details
  2. Merge pull request arduino-libraries#159 from arduino-libraries/depen…

    …dabot/github_actions/actions/checkout-4
    
    Bump actions/checkout from 3 to 4
    per1234 authored Sep 4, 2023
    Copy the full SHA
    09ecf29 View commit details

Commits on Nov 2, 2023

  1. Update HttpClient.cpp

    Add 443 port for HTTPS requests
    kodav authored Nov 2, 2023
    Copy the full SHA
    0a3e61a View commit details
  2. Update HttpClient.h

    kodav authored Nov 2, 2023
    Copy the full SHA
    ab3d000 View commit details

Commits on Feb 16, 2024

  1. Bump actions/upload-artifact from 3 to 4 (arduino-libraries#164)

    Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
    - [Release notes](https://github.com/actions/upload-artifact/releases)
    - [Commits](actions/upload-artifact@v3...v4)
    
    ---
    updated-dependencies:
    - dependency-name: actions/upload-artifact
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Feb 16, 2024
    Copy the full SHA
    a721a5b View commit details
  2. Bump actions/download-artifact from 3 to 4 (arduino-libraries#165)

    Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4.
    - [Release notes](https://github.com/actions/download-artifact/releases)
    - [Commits](actions/download-artifact@v3...v4)
    
    ---
    updated-dependencies:
    - dependency-name: actions/download-artifact
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Feb 16, 2024
    Copy the full SHA
    13d12a4 View commit details
  3. Bump geekyeggo/delete-artifact from 2 to 4 (arduino-libraries#167)

    Bumps [geekyeggo/delete-artifact](https://github.com/geekyeggo/delete-artifact) from 2 to 4.
    - [Release notes](https://github.com/geekyeggo/delete-artifact/releases)
    - [Changelog](https://github.com/GeekyEggo/delete-artifact/blob/main/CHANGELOG.md)
    - [Commits](GeekyEggo/delete-artifact@v2...v4)
    
    ---
    updated-dependencies:
    - dependency-name: geekyeggo/delete-artifact
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Feb 16, 2024
    Copy the full SHA
    a6a4127 View commit details
  4. Copy the full SHA
    9625575 View commit details

Commits on Feb 21, 2024

  1. Fix regression: report size delta size on PR. (arduino-libraries#172)

    The necessary steps have in fact been documented here: https://github.com/arduino/report-size-deltas/blob/main/docs/FAQ.md#workflow-triggered-by-pull_request-event but I have overlooked them when I fixed the upload issue. With this PR the size deltas are - once again - reported within the PR.
    aentinger authored Feb 21, 2024
    Copy the full SHA
    7a6b39a View commit details
  2. Copy the full SHA
    cf741b0 View commit details
  3. Copy the full SHA
    6159db9 View commit details
  4. Copy the full SHA
    e5db3b5 View commit details
  5. Copy the full SHA
    a1a79a5 View commit details
  6. Copy the full SHA
    9f01bfe View commit details
  7. Correct workflow artifact name pattern in size deltas report workflow

    The "sketches-reports-source" input of the "arduino/report-size-deltas" GitHub Actions action defines the regular
    expression that matches the names of the sketches report workflow artifacts produced by the "Compile Examples" workflow.
    
    The key string in the names of these artifacts was set to "sketches-report" when the "Compile Examples" workflow was
    adjusted for compatibility with the breaking changes introduced by updating to version 4.x of the workflow's
    "actions/upload-artifact" GitHub Actions action dependency. The pattern set in the size deltas report workflow was
    "sketches-reports". The "s" at the end of that pattern caused it to no longer match against the key string in the
    artifact names after that adjustment of the "Compile Examples" workflow, resulting in size deltas reports no longer
    being generated by the workflow.
    
    Although a minimal fix would be to simply remove the "s" from the end of the pattern, the decision was made to use a
    more strict regular expression. This will make it easier for maintainers and contributors to understand that this value
    is a regular expression and the exact nature of how that regular expression functions (which is less clear when relying
    on the "arduino/report-size-deltas" action's partial pattern matching behavior).
    aentinger committed Feb 21, 2024
    Copy the full SHA
    8c7bff7 View commit details
  8. Merge pull request arduino-libraries#174 from arduino-libraries/fix-c…

    …ompile-examples
    
    Fix size deltas report infrastructure configuration
    aentinger authored Feb 21, 2024
    Copy the full SHA
    680f815 View commit details

Commits on Mar 13, 2024

  1. Update examples/ParseURL/ParseURL.ino

    Co-authored-by: per1234 <accounts@perglass.com>
    andreagilardoni and per1234 authored Mar 13, 2024
    Copy the full SHA
    8d44059 View commit details
  2. Copy the full SHA
    dbe65d6 View commit details
  3. Copy the full SHA
    734f5b5 View commit details

Commits on Mar 14, 2024

  1. Copy the full SHA
    482e088 View commit details
  2. Copy the full SHA
    9ea6ace View commit details
7 changes: 7 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# See: https://github.com/codespell-project/codespell#using-a-config-file
[codespell]
# In the event of a false positive, add the problematic word, in all lowercase, to a comma-separated list here:
ignore-words-list = ,
check-filenames =
check-hidden =
skip = ./.git,./src/utility/URLParser
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# See: https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates#about-the-dependabotyml-file
version: 2

updates:
# Configure check for outdated GitHub Actions actions in workflows.
# See: https://docs.github.com/en/github/administering-a-repository/keeping-your-actions-up-to-date-with-dependabot
- package-ecosystem: github-actions
directory: / # Check the repository's workflows under /.github/workflows/
schedule:
interval: daily
labels:
- "topic: infrastructure"
28 changes: 28 additions & 0 deletions .github/workflows/check-arduino.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Check Arduino

# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
on:
push:
pull_request:
schedule:
# Run every Tuesday at 8 AM UTC to catch breakage caused by new rules added to Arduino Lint.
- cron: "0 8 * * TUE"
workflow_dispatch:
repository_dispatch:

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Arduino Lint
uses: arduino/arduino-lint-action@v2
with:
compliance: specification
library-manager: update
# Always use this setting for official repositories. Remove for 3rd party projects.
official: true
project-type: library
63 changes: 63 additions & 0 deletions .github/workflows/compile-examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Compile Examples

# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
on:
push:
paths:
- ".github/workflows/compile-examples.yml"
- "examples/**"
- "src/**"
pull_request:
paths:
- ".github/workflows/compile-examples.yml"
- "examples/**"
- "src/**"
schedule:
# Run every Tuesday at 8 AM UTC to catch breakage caused by changes to external resources (libraries, platforms).
- cron: "0 8 * * TUE"
workflow_dispatch:
repository_dispatch:

jobs:
build:
name: ${{ matrix.board.fqbn }}
runs-on: ubuntu-latest

env:
SKETCHES_REPORTS_PATH: sketches-reports

strategy:
fail-fast: false

matrix:
board:
- fqbn: arduino:samd:mkr1000
platforms: |
- name: arduino:samd
artifact-name-suffix: arduino-samd-mkr1000

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Compile examples
uses: arduino/compile-sketches@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fqbn: ${{ matrix.board.fqbn }}
platforms: ${{ matrix.board.platforms }}
libraries: |
# Install the library from the local path.
- source-path: ./
- name: WiFi101
sketch-paths: |
- examples
enable-deltas-report: true
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}

- name: Save sketches report as workflow artifact
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
path: ${{ env.SKETCHES_REPORTS_PATH }}
name: sketches-report-${{ matrix.board.artifact-name-suffix }}
24 changes: 24 additions & 0 deletions .github/workflows/report-size-deltas.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Report Size Deltas

# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
on:
push:
paths:
- ".github/workflows/report-size-deltas.yml"
schedule:
# Run at the minimum interval allowed by GitHub Actions.
# Note: GitHub Actions periodically has outages which result in workflow failures.
# In this event, the workflows will start passing again once the service recovers.
- cron: "*/5 * * * *"
workflow_dispatch:
repository_dispatch:

jobs:
report:
runs-on: ubuntu-latest
steps:
- name: Comment size deltas reports to PRs
uses: arduino/report-size-deltas@v1
with:
# Regex matching the names of the workflow artifacts created by the "Compile Examples" workflow
sketches-reports-source: ^sketches-report-.+
22 changes: 22 additions & 0 deletions .github/workflows/spell-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Spell Check

# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
on:
push:
pull_request:
schedule:
# Run every Tuesday at 8 AM UTC to catch new misspelling detections resulting from dictionary updates.
- cron: "0 8 * * TUE"
workflow_dispatch:
repository_dispatch:

jobs:
spellcheck:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Spell check
uses: codespell-project/actions-codespell@master
138 changes: 138 additions & 0 deletions .github/workflows/sync-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/sync-labels.md
name: Sync Labels

# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
on:
push:
paths:
- ".github/workflows/sync-labels.ya?ml"
- ".github/label-configuration-files/*.ya?ml"
pull_request:
paths:
- ".github/workflows/sync-labels.ya?ml"
- ".github/label-configuration-files/*.ya?ml"
schedule:
# Run daily at 8 AM UTC to sync with changes to shared label configurations.
- cron: "0 8 * * *"
workflow_dispatch:
repository_dispatch:

env:
CONFIGURATIONS_FOLDER: .github/label-configuration-files
CONFIGURATIONS_ARTIFACT: label-configuration-files

jobs:
check:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Download JSON schema for labels configuration file
id: download-schema
uses: carlosperate/download-file-action@v2
with:
file-url: https://raw.githubusercontent.com/arduino/tooling-project-assets/main/workflow-templates/assets/sync-labels/arduino-tooling-gh-label-configuration-schema.json
location: ${{ runner.temp }}/label-configuration-schema

- name: Install JSON schema validator
run: |
sudo npm install \
--global \
ajv-cli \
ajv-formats
- name: Validate local labels configuration
run: |
# See: https://github.com/ajv-validator/ajv-cli#readme
ajv validate \
--all-errors \
-c ajv-formats \
-s "${{ steps.download-schema.outputs.file-path }}" \
-d "${{ env.CONFIGURATIONS_FOLDER }}/*.{yml,yaml}"
download:
needs: check
runs-on: ubuntu-latest

strategy:
matrix:
filename:
# Filenames of the shared configurations to apply to the repository in addition to the local configuration.
# https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/sync-labels
- universal.yml

steps:
- name: Download
uses: carlosperate/download-file-action@v2
with:
file-url: https://raw.githubusercontent.com/arduino/tooling-project-assets/main/workflow-templates/assets/sync-labels/${{ matrix.filename }}

- name: Pass configuration files to next job via workflow artifact
uses: actions/upload-artifact@v4
with:
path: |
*.yaml
*.yml
if-no-files-found: error
name: ${{ env.CONFIGURATIONS_ARTIFACT }}

sync:
needs: download
runs-on: ubuntu-latest

steps:
- name: Set environment variables
run: |
# See: https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable
echo "MERGED_CONFIGURATION_PATH=${{ runner.temp }}/labels.yml" >> "$GITHUB_ENV"
- name: Determine whether to dry run
id: dry-run
if: >
github.event_name == 'pull_request' ||
(
(
github.event_name == 'push' ||
github.event_name == 'workflow_dispatch'
) &&
github.ref != format('refs/heads/{0}', github.event.repository.default_branch)
)
run: |
# Use of this flag in the github-label-sync command will cause it to only check the validity of the
# configuration.
echo "::set-output name=flag::--dry-run"
- name: Checkout repository
uses: actions/checkout@v4

- name: Download configuration files artifact
uses: actions/download-artifact@v4
with:
name: ${{ env.CONFIGURATIONS_ARTIFACT }}
path: ${{ env.CONFIGURATIONS_FOLDER }}

- name: Remove unneeded artifact
uses: geekyeggo/delete-artifact@v5
with:
name: ${{ env.CONFIGURATIONS_ARTIFACT }}

- name: Merge label configuration files
run: |
# Merge all configuration files
shopt -s extglob
cat "${{ env.CONFIGURATIONS_FOLDER }}"/*.@(yml|yaml) > "${{ env.MERGED_CONFIGURATION_PATH }}"
- name: Install github-label-sync
run: sudo npm install --global github-label-sync

- name: Sync labels
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# See: https://github.com/Financial-Times/github-label-sync
github-label-sync \
--labels "${{ env.MERGED_CONFIGURATION_PATH }}" \
${{ steps.dry-run.outputs.flag }} \
${{ github.repository }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -3,3 +3,4 @@ examples/node_test_server/node_modules/
*.DS_Store
*/.DS_Store
examples/.DS_Store
.idea/
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@
## ArduinoHttpClient 0.3.1 - 2017.09.25

* Changed examples to support Arduino Create secret tabs
* Increase WebSocket secrect-key length to 24 characters
* Increase WebSocket secret-key length to 24 characters

## ArduinoHttpClient 0.3.0 - 2017.04.20

Loading