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
6 changes: 3 additions & 3 deletions .github/workflows/check-certificates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
RESULT="false"
fi

echo "result=$RESULT" >> $GITHUB_OUTPUT
echo "result=$RESULT" >>$GITHUB_OUTPUT

check-certificates:
name: ${{ matrix.certificate.identifier }}
Expand All @@ -82,7 +82,7 @@ jobs:
- name: Set certificate path environment variable
run: |
# See: https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#setting-an-environment-variable
echo "CERTIFICATE_PATH=${{ runner.temp }}/certificate.p12" >> "$GITHUB_ENV"
echo "CERTIFICATE_PATH=${{ runner.temp }}/certificate.p12" >>"$GITHUB_ENV"

- name: Decode certificate
env:
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:
echo "Certificate expiration date: $EXPIRATION_DATE"
echo "Days remaining before expiration: $DAYS_BEFORE_EXPIRATION"

echo "days=$DAYS_BEFORE_EXPIRATION" >> $GITHUB_OUTPUT
echo "days=$DAYS_BEFORE_EXPIRATION" >>$GITHUB_OUTPUT

- name: Check if expiration notification period has been reached
id: check-expiration
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/check-general-formatting-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
RESULT="false"
fi

echo "result=$RESULT" >> $GITHUB_OUTPUT
echo "result=$RESULT" >>$GITHUB_OUTPUT

check:
needs: run-determination
Expand All @@ -48,7 +48,7 @@ jobs:
- name: Set environment variables
run: |
# See: https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#setting-an-environment-variable
echo "EC_INSTALL_PATH=${{ runner.temp }}/editorconfig-checker" >> "$GITHUB_ENV"
echo "EC_INSTALL_PATH=${{ runner.temp }}/editorconfig-checker" >>"$GITHUB_ENV"

- name: Checkout repository
uses: actions/checkout@v5
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
mv "${{ env.EC_INSTALL_PATH }}/bin/ec-linux-amd64" "${{ env.EC_INSTALL_PATH }}/bin/ec"
# Add installation to PATH:
# See: https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#adding-a-system-path
echo "${{ env.EC_INSTALL_PATH }}/bin" >> "$GITHUB_PATH"
echo "${{ env.EC_INSTALL_PATH }}/bin" >>"$GITHUB_PATH"

- name: Check formatting
run: task --silent general:check-formatting
2 changes: 1 addition & 1 deletion .github/workflows/check-go-dependencies-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
RESULT="false"
fi

echo "result=$RESULT" >> $GITHUB_OUTPUT
echo "result=$RESULT" >>$GITHUB_OUTPUT

check-cache:
needs: run-determination
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-go-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
RESULT="false"
fi

echo "result=$RESULT" >> $GITHUB_OUTPUT
echo "result=$RESULT" >>$GITHUB_OUTPUT

check-errors:
name: check-errors (${{ matrix.module.path }})
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-license.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
RESULT="false"
fi

echo "result=$RESULT" >> $GITHUB_OUTPUT
echo "result=$RESULT" >>$GITHUB_OUTPUT

check-license:
name: ${{ matrix.check-license.path }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-markdown-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
RESULT="false"
fi

echo "result=$RESULT" >> $GITHUB_OUTPUT
echo "result=$RESULT" >>$GITHUB_OUTPUT

lint:
needs: run-determination
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-mkdocs-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
RESULT="false"
fi

echo "result=$RESULT" >> $GITHUB_OUTPUT
echo "result=$RESULT" >>$GITHUB_OUTPUT

check:
needs: run-determination
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-npm-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
RESULT="false"
fi

echo "result=$RESULT" >> $GITHUB_OUTPUT
echo "result=$RESULT" >>$GITHUB_OUTPUT

validate:
name: validate (${{ matrix.project.path }})
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-prettier-formatting-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ jobs:
RESULT="false"
fi

echo "result=$RESULT" >> $GITHUB_OUTPUT
echo "result=$RESULT" >>$GITHUB_OUTPUT

check:
needs: run-determination
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-python-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
RESULT="false"
fi

echo "result=$RESULT" >> $GITHUB_OUTPUT
echo "result=$RESULT" >>$GITHUB_OUTPUT

lint:
needs: run-determination
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/check-shell-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
RESULT="false"
fi

echo "result=$RESULT" >> $GITHUB_OUTPUT
echo "result=$RESULT" >>$GITHUB_OUTPUT

lint:
name: ${{ matrix.configuration.name }} (${{ matrix.script }})
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
- name: Set environment variables
run: |
# See: https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#setting-an-environment-variable
echo "INSTALL_PATH=${{ runner.temp }}/shellcheck" >> "$GITHUB_ENV"
echo "INSTALL_PATH=${{ runner.temp }}/shellcheck" >>"$GITHUB_ENV"

- name: Checkout repository
uses: actions/checkout@v5
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
)"
# Add installation to PATH:
# See: https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#adding-a-system-path
echo "${{ env.INSTALL_PATH }}/$EXTRACTION_FOLDER" >> "$GITHUB_PATH"
echo "${{ env.INSTALL_PATH }}/$EXTRACTION_FOLDER" >>"$GITHUB_PATH"

- name: Run ShellCheck
uses: liskin/gh-problem-matcher-wrap@v3
Expand Down Expand Up @@ -144,7 +144,7 @@ jobs:
- name: Set environment variables
run: |
# See: https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#setting-an-environment-variable
echo "SHFMT_INSTALL_PATH=${{ runner.temp }}/shfmt" >> "$GITHUB_ENV"
echo "SHFMT_INSTALL_PATH=${{ runner.temp }}/shfmt" >>"$GITHUB_ENV"

- name: Checkout repository
uses: actions/checkout@v5
Expand Down Expand Up @@ -172,7 +172,7 @@ jobs:
mv "${{ env.SHFMT_INSTALL_PATH }}/${{ steps.download.outputs.name }}" "${{ env.SHFMT_INSTALL_PATH }}/shfmt"
# Add installation to PATH:
# See: https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#adding-a-system-path
echo "${{ env.SHFMT_INSTALL_PATH }}" >> "$GITHUB_PATH"
echo "${{ env.SHFMT_INSTALL_PATH }}" >>"$GITHUB_PATH"

- name: Format shell scripts
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-cobra-mkdocs-versioned-poetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
RESULT="false"
fi

echo "result=$RESULT" >> $GITHUB_OUTPUT
echo "result=$RESULT" >>$GITHUB_OUTPUT

publish:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:

- name: Determine versioning parameters
id: determine-versioning
run: echo "data=$(poetry run python docs/siteversion/siteversion.py)" >> $GITHUB_OUTPUT
run: echo "data=$(poetry run python docs/siteversion/siteversion.py)" >>$GITHUB_OUTPUT

- name: Publish documentation
if: fromJson(steps.determine-versioning.outputs.data).version != null
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-go-nightly-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
- name: Set environment variables
run: |
# See: https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#setting-an-environment-variable
echo "BUILD_FOLDER=${{ env.PROJECT_NAME }}_osx_${{ matrix.build.folder-suffix }}" >> "$GITHUB_ENV"
echo "BUILD_FOLDER=${{ env.PROJECT_NAME }}_osx_${{ matrix.build.folder-suffix }}" >>"$GITHUB_ENV"

- name: Checkout repository
uses: actions/checkout@v5
Expand All @@ -111,7 +111,7 @@ jobs:
# Arbitrary password for a keychain that exists only for the duration of the job, so not secret
KEYCHAIN_PASSWORD: keychainpassword
run: |
echo "${{ secrets.INSTALLER_CERT_MAC_P12 }}" | base64 --decode > "${{ env.INSTALLER_CERT_MAC_PATH }}"
echo "${{ secrets.INSTALLER_CERT_MAC_P12 }}" | base64 --decode >"${{ env.INSTALLER_CERT_MAC_PATH }}"
security create-keychain -p "${{ env.KEYCHAIN_PASSWORD }}" "${{ env.KEYCHAIN }}"
security default-keychain -s "${{ env.KEYCHAIN }}"
security unlock-keychain -p "${{ env.KEYCHAIN_PASSWORD }}" "${{ env.KEYCHAIN }}"
Expand All @@ -136,7 +136,7 @@ jobs:
- name: Write gon config to file
# gon does not allow env variables in config file (https://github.com/mitchellh/gon/issues/20)
run: |
cat > "${{ env.GON_CONFIG_PATH }}" <<EOF
cat >"${{ env.GON_CONFIG_PATH }}" <<EOF
# See: https://github.com/Bearer/gon#configuration-file
source = ["${{ env.DIST_DIR }}/${{ env.BUILD_FOLDER }}/${{ env.PROJECT_NAME }}"]
bundle_id = "cc.arduino.${{ env.PROJECT_NAME }}"
Expand Down Expand Up @@ -202,7 +202,7 @@ jobs:
working-directory: ${{ env.DIST_DIR }}
run: |
TAG="nightly-$(date -u +"%Y%m%d")"
sha256sum ${{ env.PROJECT_NAME }}_${TAG}* > ${TAG}-checksums.txt
sha256sum ${{ env.PROJECT_NAME }}_${TAG}* >${TAG}-checksums.txt

- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v5
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/publish-go-tester-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
RESULT="false"
fi

echo "result=$RESULT" >> $GITHUB_OUTPUT
echo "result=$RESULT" >>$GITHUB_OUTPUT

package-name-prefix:
needs: run-determination
Expand All @@ -73,7 +73,7 @@ jobs:
fi
PACKAGE_NAME_PREFIX="$PACKAGE_NAME_PREFIX-${{ github.sha }}-"

echo "prefix=$PACKAGE_NAME_PREFIX" >> $GITHUB_OUTPUT
echo "prefix=$PACKAGE_NAME_PREFIX" >>$GITHUB_OUTPUT

build:
needs: package-name-prefix
Expand Down Expand Up @@ -152,12 +152,11 @@ jobs:
run: |
TAG="${{ needs.package-name-prefix.outputs.prefix }}git-snapshot"
declare -a artifacts=($(ls -d */))
for artifact in ${artifacts[@]}
do
for artifact in ${artifacts[@]}; do
cd $artifact
checksum=$(sha256sum ${{ env.PROJECT_NAME }}_${TAG}*)
cd ..
echo $checksum >> ${TAG}-checksums.txt
echo $checksum >>${TAG}-checksums.txt
done

- name: Upload checksum artifact
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release-go-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ jobs:
- name: Set environment variables
run: |
# See: https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#setting-an-environment-variable
echo "BUILD_FOLDER=${{ env.PROJECT_NAME }}_osx_${{ matrix.build.folder-suffix }}" >> "$GITHUB_ENV"
echo "BUILD_FOLDER=${{ env.PROJECT_NAME }}_osx_${{ matrix.build.folder-suffix }}" >>"$GITHUB_ENV"
TAG="${GITHUB_REF/refs\/tags\//}"
echo "PACKAGE_FILENAME=${{ env.PROJECT_NAME }}_${TAG}_${{ matrix.build.package-suffix }}" >> $GITHUB_ENV
echo "PACKAGE_FILENAME=${{ env.PROJECT_NAME }}_${TAG}_${{ matrix.build.package-suffix }}" >>$GITHUB_ENV

- name: Checkout repository
uses: actions/checkout@v5
Expand All @@ -120,7 +120,7 @@ jobs:
# Arbitrary password for a keychain that exists only for the duration of the job, so not secret
KEYCHAIN_PASSWORD: keychainpassword
run: |
echo "${{ secrets.INSTALLER_CERT_MAC_P12 }}" | base64 --decode > "${{ env.INSTALLER_CERT_MAC_PATH }}"
echo "${{ secrets.INSTALLER_CERT_MAC_P12 }}" | base64 --decode >"${{ env.INSTALLER_CERT_MAC_PATH }}"
security create-keychain -p "${{ env.KEYCHAIN_PASSWORD }}" "${{ env.KEYCHAIN }}"
security default-keychain -s "${{ env.KEYCHAIN }}"
security unlock-keychain -p "${{ env.KEYCHAIN_PASSWORD }}" "${{ env.KEYCHAIN }}"
Expand All @@ -145,7 +145,7 @@ jobs:
- name: Write gon config to file
# gon does not allow env variables in config file (https://github.com/mitchellh/gon/issues/20)
run: |
cat > "${{ env.GON_CONFIG_PATH }}" <<EOF
cat >"${{ env.GON_CONFIG_PATH }}" <<EOF
# See: https://github.com/Bearer/gon#configuration-file
source = ["${{ env.DIST_DIR }}/${{ env.BUILD_FOLDER }}/${{ env.PROJECT_NAME }}"]
bundle_id = "cc.arduino.${{ env.PROJECT_NAME }}"
Expand Down Expand Up @@ -208,7 +208,7 @@ jobs:
working-directory: ${{ env.DIST_DIR }}
run: |
TAG="${GITHUB_REF/refs\/tags\//}"
sha256sum ${{ env.PROJECT_NAME }}_${TAG}* > ${TAG}-checksums.txt
sha256sum ${{ env.PROJECT_NAME }}_${TAG}* >${TAG}-checksums.txt

- name: Identify Prerelease
# This is a workaround while waiting for create-release action
Expand All @@ -224,7 +224,7 @@ jobs:
)" != \
"" \
]]; then
echo "IS_PRE=true" >> $GITHUB_OUTPUT
echo "IS_PRE=true" >>$GITHUB_OUTPUT
fi

- name: Create Github Release and upload artifacts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spell-check-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
RESULT="false"
fi

echo "result=$RESULT" >> $GITHUB_OUTPUT
echo "result=$RESULT" >>$GITHUB_OUTPUT

spellcheck:
needs: run-determination
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/sync-labels-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
- name: Set environment variables
run: |
# See: https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#setting-an-environment-variable
echo "MERGED_CONFIGURATION_PATH=${{ runner.temp }}/labels.yml" >> "$GITHUB_ENV"
echo "MERGED_CONFIGURATION_PATH=${{ runner.temp }}/labels.yml" >>"$GITHUB_ENV"

- name: Determine whether to dry run
id: dry-run
Expand All @@ -119,7 +119,7 @@ jobs:
run: |
# Use of this flag in the github-label-sync command will cause it to only check the validity of the
# configuration.
echo "flag=--dry-run" >> $GITHUB_OUTPUT
echo "flag=--dry-run" >>$GITHUB_OUTPUT

- name: Checkout repository
uses: actions/checkout@v5
Expand All @@ -145,7 +145,7 @@ jobs:
run: |
# Merge all configuration files
shopt -s extglob
cat "${{ env.CONFIGURATIONS_FOLDER }}"/*.@(yml|yaml) > "${{ env.MERGED_CONFIGURATION_PATH }}"
cat "${{ env.CONFIGURATIONS_FOLDER }}"/*.@(yml|yaml) >"${{ env.MERGED_CONFIGURATION_PATH }}"

- name: Install github-label-sync
run: npm install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-go-integration-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
RESULT="false"
fi

echo "result=$RESULT" >> $GITHUB_OUTPUT
echo "result=$RESULT" >>$GITHUB_OUTPUT

test:
needs: run-determination
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-go-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
RESULT="false"
fi

echo "result=$RESULT" >> $GITHUB_OUTPUT
echo "result=$RESULT" >>$GITHUB_OUTPUT

test:
name: test (${{ matrix.module.path }} - ${{ matrix.operating-system }})
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
shell: bash
run: |
# See: https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#setting-an-environment-variable
echo "BINDIR=${{ runner.temp }}/custom-installation-folder" >> "$GITHUB_ENV"
echo "BINDIR=${{ runner.temp }}/custom-installation-folder" >>"$GITHUB_ENV"

- name: Checkout repository
uses: actions/checkout@v5
Expand Down
Loading