Skip to content

Add automated telegraf-agent upgrade workflow#1652

Open
suyadav1 wants to merge 2 commits intoci_prodfrom
auto/add-telegraf-upgrade-workflow
Open

Add automated telegraf-agent upgrade workflow#1652
suyadav1 wants to merge 2 commits intoci_prodfrom
auto/add-telegraf-upgrade-workflow

Conversation

@suyadav1
Copy link
Copy Markdown
Contributor

@suyadav1 suyadav1 commented Apr 17, 2026

Summary

Adds a scheduled GitHub Actions workflow (.github/workflows/check-telegraf-upgrade.yml) that automatically detects new telegraf-agent packages on PMC and creates PRs to update kubernetes/linux/setup.sh.

How it works

  1. Runs every day at 10 AM UTC
  2. Scrapes PMC for the latest telegraf-agent version
  3. Compares against the version in kubernetes/linux/setup.sh
  4. If newer and no existing PR — updates setup.sh, pushes a branch, and creates a PR

Testing

After merging, trigger manually via Actions → Check Telegraf Package Upgrade → Run workflow to verify it detects the current version correctly.

@suyadav1 suyadav1 requested a review from a team as a code owner April 17, 2026 22:33
Adds a scheduled GitHub Actions workflow that checks PMC daily for new
telegraf-agent packages and creates PRs to update kubernetes/linux/setup.sh.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@suyadav1 suyadav1 force-pushed the auto/add-telegraf-upgrade-workflow branch from 00d7fb6 to f523d2a Compare April 17, 2026 22:34
@suyadav1
Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

- Add 'Fetch upstream release notes' step that fetches from influxdata/telegraf
  GitHub releases using gh api (authenticated, best-effort with fallback)
- Enhanced PR body with collapsible release notes, full release link, and
  compare link between versions
- Use --body-file and env vars to safely handle multiline release notes
  containing special characters
- Use unique delimiter for GITHUB_OUTPUT multiline values to prevent collision

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant