Skip to content

fix(deps): update module golang.org/x/net to v0.54.0 #196

fix(deps): update module golang.org/x/net to v0.54.0

fix(deps): update module golang.org/x/net to v0.54.0 #196

Workflow file for this run

# Parity workflow: CI parity checks and build artifacts for PRs, pushes, schedules,
# and manual preview builds.
name: parity
on:
pull_request:
push:
branches:
- "**"
workflow_dispatch:
schedule:
- cron: "0 9 * * 1"
permissions: read-all
jobs:
parity:
runs-on: ubuntu-latest
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Checkout upstream Apprise
run: |
set -euo pipefail
upstream_version=$(sed -n 's/^var UpstreamVersion = "\([^"]*\)"/\1/p' internal/version/version.go)
if [[ -z "${upstream_version}" ]]; then
echo "UpstreamVersion not found in internal/version/version.go" >&2
exit 1
fi
target="../apprise"
if [[ -d "${target}" ]] && ([[ -d "${target}/.git" ]] || git -C "${target}" rev-parse --is-inside-work-tree >/dev/null 2>&1); then
echo "Upstream apprise repo already present at ${target}"
exit 0
fi
mkdir -p "${target}"
git -C "${target}" init
git -C "${target}" remote add origin https://github.com/caronc/apprise
if git -C "${target}" fetch --depth 1 origin "refs/tags/v${upstream_version}"; then
git -C "${target}" checkout --detach FETCH_HEAD
elif git -C "${target}" fetch --depth 1 origin "refs/tags/${upstream_version}"; then
git -C "${target}" checkout --detach FETCH_HEAD
else
echo "Upstream tag not found for version ${upstream_version}." >&2
exit 1
fi
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.14"
- name: Install parity dependencies
run: bash scripts/ci/setup_parity_env.sh
- name: Run parity tests
run: bash scripts/ci/run_parity_tests.sh
- name: Publish parity report summary
if: always()
run: |
echo "## Parity Report" >> "$GITHUB_STEP_SUMMARY"
if [[ -f reports/parity_report.md ]]; then
cat reports/parity_report.md >> "$GITHUB_STEP_SUMMARY"
else
echo "Parity report not generated." >> "$GITHUB_STEP_SUMMARY"
fi
- name: Upload parity report artifact
if: always()
uses: actions/upload-artifact@v6
with:
name: parity-report
path: |
reports/parity_report.md
reports/parity_report.json
- name: Notify Discord on scheduled parity failure
if: failure() && github.event_name == 'schedule' && env.DISCORD_WEBHOOK != ''
run: |
run_url="https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
payload=$(printf '{"content":"parity cron failed for %s: %s"}' "$GITHUB_REPOSITORY" "$run_url")
curl -sS -X POST -H "Content-Type: application/json" -d "$payload" "$DISCORD_WEBHOOK"
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- goos: linux
goarch: amd64
ext: ""
- goos: linux
goarch: arm64
ext: ""
- goos: linux
goarch: 386
ext: ""
- goos: linux
goarch: arm
goarm: "7"
ext: ""
- goos: darwin
goarch: amd64
ext: ""
- goos: darwin
goarch: arm64
ext: ""
- goos: windows
goarch: amd64
ext: ".exe"
- goos: windows
goarch: arm64
ext: ".exe"
- goos: windows
goarch: 386
ext: ".exe"
- goos: freebsd
goarch: amd64
ext: ""
- goos: freebsd
goarch: arm64
ext: ""
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Build binary
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
GOARM: ${{ matrix.goarm }}
CGO_ENABLED: "0"
BIN_EXT: ${{ matrix.ext }}
run: |
mkdir -p dist
if [ "$GOARCH" = "arm" ] && [ -n "$GOARM" ]; then
OUTPUT_NAME="apprise-go-${GOOS}-${GOARCH}v${GOARM}${BIN_EXT}"
else
OUTPUT_NAME="apprise-go-${GOOS}-${GOARCH}${BIN_EXT}"
fi
go build -trimpath -ldflags "-s -w" -o "dist/${OUTPUT_NAME}" ./cmd/apprise
echo "output_name=${OUTPUT_NAME}" >> $GITHUB_ENV
- name: Upload binary artifact
uses: actions/upload-artifact@v6
with:
name: ${{ env.output_name }}
path: dist/${{ env.output_name }}