[PR #1099] [MERGED] Configure nuget-release workflow to validate PRs without publishing #1528

Open
opened 2026-01-29 22:20:59 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/adamhathcock/sharpcompress/pull/1099
Author: @Copilot
Created: 1/3/2026
Status: Merged
Merged: 1/3/2026
Merged by: @adamhathcock

Base: adam/remove-old-releaseHead: copilot/sub-pr-1098


📝 Commits (2)

  • a739fdc Initial plan
  • 235096a Configure nuget-release.yml to run on PRs without publishing

📊 Changes

1 file changed (+6 additions, -2 deletions)

View changed files

📝 .github/workflows/nuget-release.yml (+6 -2)

📄 Description

The nuget-release.yml workflow only ran on direct pushes to master/release or tags, meaning PRs weren't validated by CI before merge.

Workflow Changes:

  • Added pull_request trigger for master and release branches
  • Gated NuGet publishing step with github.event_name != 'pull_request' condition

Behavior:

  • PRs: Build, test, and upload artifacts for validation - no publishing
  • Merges/Tags: Full workflow including NuGet publishing
on:
  push:
    branches: ['master', 'release']
    tags: ['[0-9]+.[0-9]+.[0-9]+']
  pull_request:
    branches: ['master', 'release']

# ...

- name: Push to NuGet
  if: success() && matrix.os == 'windows-latest' && github.event_name != 'pull_request'

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/adamhathcock/sharpcompress/pull/1099 **Author:** [@Copilot](https://github.com/apps/copilot-swe-agent) **Created:** 1/3/2026 **Status:** ✅ Merged **Merged:** 1/3/2026 **Merged by:** [@adamhathcock](https://github.com/adamhathcock) **Base:** `adam/remove-old-release` ← **Head:** `copilot/sub-pr-1098` --- ### 📝 Commits (2) - [`a739fdc`](https://github.com/adamhathcock/sharpcompress/commit/a739fdc5440a914622d5926ef0cb487455651aec) Initial plan - [`235096a`](https://github.com/adamhathcock/sharpcompress/commit/235096a2eb1bdfa76c310e235ceb74f6a2c40c8c) Configure nuget-release.yml to run on PRs without publishing ### 📊 Changes **1 file changed** (+6 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/nuget-release.yml` (+6 -2) </details> ### 📄 Description The `nuget-release.yml` workflow only ran on direct pushes to master/release or tags, meaning PRs weren't validated by CI before merge. **Workflow Changes:** * Added `pull_request` trigger for `master` and `release` branches * Gated NuGet publishing step with `github.event_name != 'pull_request'` condition **Behavior:** * **PRs**: Build, test, and upload artifacts for validation - no publishing * **Merges/Tags**: Full workflow including NuGet publishing ```yaml on: push: branches: ['master', 'release'] tags: ['[0-9]+.[0-9]+.[0-9]+'] pull_request: branches: ['master', 'release'] # ... - name: Push to NuGet if: success() && matrix.os == 'windows-latest' && github.event_name != 'pull_request' ``` <!-- START COPILOT CODING AGENT TIPS --> --- 💬 We'd love your input! Share your thoughts on Copilot coding agent in our [2 minute survey](https://gh.io/copilot-coding-agent-survey). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 22:20:59 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#1528