GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Some polishing of the porting workflows (#16288) · netty/netty@1cbf566

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • backport-41.yml
    • backport-42.yml
    • forwardport-50.yml
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/backport-41.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/backport-41.yml
+18-3Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,24 @@ jobs:
8181
body: `Backport PR for 4.1: #${pr.number}`
8282
});
8383
84+
# Important: This script MUST run with the default GITHUB_TOKEN to avoid triggering other actions.
85+
- name: Remove triggering label
86+
if: steps.create-pr.outcome == 'success'
87+
uses: actions/github-script@v8
88+
with:
89+
script: |
90+
await github.rest.issues.removeLabel({
91+
owner: context.repo.owner,
92+
repo: context.repo.repo,
93+
issue_number: context.payload.pull_request.number,
94+
name: 'needs-cherry-pick-4.1'
95+
});
96+
8497
- name: Report cherry-pick conflicts
85-
if: failure() && steps.cherry-pick.outcome != 'success'
98+
if: failure() && steps.cherry-pick.outcome == 'failure'
8699
uses: actions/github-script@v8
87100
with:
101+
github-token: '${{ secrets.PAT_TOKEN_READ_WRITE_PR }}'
88102
script: |
89103
await github.rest.issues.createComment({
90104
owner: context.repo.owner,
@@ -94,9 +108,10 @@ jobs:
94108
});
95109
96110
- name: Report backport branch push failure
97-
if: failure() && steps.push.outcome != 'success'
111+
if: failure() && steps.push.outcome == 'failure'
98112
uses: actions/github-script@v8
99113
with:
114+
github-token: '${{ secrets.PAT_TOKEN_READ_WRITE_PR }}'
100115
script: |
101116
await github.rest.issues.createComment({
102117
owner: context.repo.owner,
@@ -107,6 +122,6 @@ jobs:
107122
});
108123
109124
- name: Remove branch on PR create failure
110-
if: failure() && steps.create-pr.outcome != 'success'
125+
if: failure() && steps.cherry-pick.outputs.branch
111126
run: |
112127
git push -d origin "${{ steps.cherry-pick.outputs.branch }}"
Collapse file

‎.github/workflows/backport-42.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/backport-42.yml
+18-3Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,24 @@ jobs:
8181
body: `Backport PR for 4.2: #${pr.number}`
8282
});
8383
84+
# Important: This script MUST run with the default GITHUB_TOKEN to avoid triggering other actions.
85+
- name: Remove triggering label
86+
if: steps.create-pr.outcome == 'success'
87+
uses: actions/github-script@v8
88+
with:
89+
script: |
90+
await github.rest.issues.removeLabel({
91+
owner: context.repo.owner,
92+
repo: context.repo.repo,
93+
issue_number: context.payload.pull_request.number,
94+
name: 'needs-cherry-pick-4.2'
95+
});
96+
8497
- name: Report cherry-pick conflicts
85-
if: failure() && steps.cherry-pick.outcome != 'success'
98+
if: failure() && steps.cherry-pick.outcome == 'failure'
8699
uses: actions/github-script@v8
87100
with:
101+
github-token: '${{ secrets.PAT_TOKEN_READ_WRITE_PR }}'
88102
script: |
89103
await github.rest.issues.createComment({
90104
owner: context.repo.owner,
@@ -94,9 +108,10 @@ jobs:
94108
});
95109
96110
- name: Report backport branch push failure
97-
if: failure() && steps.push.outcome != 'success'
111+
if: failure() && steps.push.outcome == 'failure'
98112
uses: actions/github-script@v8
99113
with:
114+
github-token: '${{ secrets.PAT_TOKEN_READ_WRITE_PR }}'
100115
script: |
101116
await github.rest.issues.createComment({
102117
owner: context.repo.owner,
@@ -107,6 +122,6 @@ jobs:
107122
});
108123
109124
- name: Remove branch on PR create failure
110-
if: failure() && steps.create-pr.outcome != 'success'
125+
if: failure() && steps.cherry-pick.outputs.branch
111126
run: |
112127
git push -d origin "${{ steps.cherry-pick.outputs.branch }}"
Collapse file

‎.github/workflows/forwardport-50.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/forwardport-50.yml
+18-3Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,24 @@ jobs:
8181
body: `Forward port PR for 5.0: #${pr.number}`
8282
});
8383
84+
# Important: This script MUST run with the default GITHUB_TOKEN to avoid triggering other actions.
85+
- name: Remove triggering label
86+
if: steps.create-pr.outcome == 'success'
87+
uses: actions/github-script@v8
88+
with:
89+
script: |
90+
await github.rest.issues.removeLabel({
91+
owner: context.repo.owner,
92+
repo: context.repo.repo,
93+
issue_number: context.payload.pull_request.number,
94+
name: 'needs-cherry-pick-5.0'
95+
});
96+
8497
- name: Report cherry-pick conflicts
85-
if: failure() && steps.cherry-pick.outcome != 'success'
98+
if: failure() && steps.cherry-pick.outcome == 'failure'
8699
uses: actions/github-script@v8
87100
with:
101+
github-token: '${{ secrets.PAT_TOKEN_READ_WRITE_PR }}'
88102
script: |
89103
await github.rest.issues.createComment({
90104
owner: context.repo.owner,
@@ -94,9 +108,10 @@ jobs:
94108
});
95109
96110
- name: Report backport branch push failure
97-
if: failure() && steps.push.outcome != 'success'
111+
if: failure() && steps.push.outcome == 'failure'
98112
uses: actions/github-script@v8
99113
with:
114+
github-token: '${{ secrets.PAT_TOKEN_READ_WRITE_PR }}'
100115
script: |
101116
await github.rest.issues.createComment({
102117
owner: context.repo.owner,
@@ -107,6 +122,6 @@ jobs:
107122
});
108123
109124
- name: Remove branch on PR create failure
110-
if: failure() && steps.create-pr.outcome != 'success'
125+
if: failure() && steps.cherry-pick.outputs.branch
111126
run: |
112127
git push -d origin "${{ steps.cherry-pick.outputs.branch }}"

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.