Skip to content

Commit f3b71cb

Browse files
committed
ci: add PR triggers to release and container workflows
- add pull_request trigger to crates.yml and ghcr.yml to enable CI checks on pull requests - add workflow_dispatch with dry-run input to crates.yml for manual release process testing - update ghcr.yml tags trigger to remove inline comment - add commented Create GitHub Release step in crates.yml for reference Signed-off-by: mingcheng <[email protected]>
1 parent 4590524 commit f3b71cb

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

.github/workflows/crates.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@ name: Release Crates
22

33
on:
44
push:
5+
branches:
6+
- main
57
tags:
68
- "v*.*.*"
9+
pull_request:
10+
branches:
11+
- main
712
workflow_dispatch:
813
inputs:
914
dry-run:
@@ -47,12 +52,12 @@ jobs:
4752
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
4853
ignore-unpublished-changes: true
4954

50-
- name: Create GitHub Release
51-
if: github.event_name == 'push'
52-
uses: softprops/action-gh-release@v2
53-
with:
54-
generate_release_notes: true
55-
draft: false
56-
prerelease: false
57-
env:
58-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
# - name: Create GitHub Release
56+
# if: github.event_name == 'push'
57+
# uses: softprops/action-gh-release@v2
58+
# with:
59+
# generate_release_notes: true
60+
# draft: false
61+
# prerelease: false
62+
# env:
63+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/ghcr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- main
77
tags:
8-
- "v*.*.*" # Match version tags like v1.2.3
8+
- "v*.*.*"
99
pull_request:
1010
branches:
1111
- main

0 commit comments

Comments
 (0)