Skip to content

Commit 8c96611

Browse files
[improve](build): Action(message in action) (#234)
Updated the GitHub Actions workflow to create quarterly release issues using the GitHub CLI instead of a specific action. Adjusted permissions and added environment variables for issue creation. Signed-off-by: Ralph Hightower <[email protected]>
1 parent 5033328 commit 8c96611

File tree

1 file changed

+25
-9
lines changed

1 file changed

+25
-9
lines changed

.github/workflows/issueQuarterlyRelease.yml

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,41 @@ on:
77
- cron: 30 5 31 12 *
88
#workflow_dispatch:
99

10-
permissions: read-all
10+
permissions:
11+
contents: read
1112

1213
jobs:
1314
create-issue:
1415
runs-on: ubuntu-latest
1516
permissions:
1617
issues: write
18+
1719
steps:
1820
- name: Harden the runner (Audit all outbound calls)
1921
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
2022
with:
2123
egress-policy: audit
2224

2325
- name: Create Quarterly Release
24-
uses: peter-evans/create-issue-from-file@fca9117c27cdc29c6c4db3b86c48e4115a786710 # v6.0.0
25-
with:
26-
title: "Issue Quarterly Release"
27-
content-filepath: .github/quarterlyRelease.md
28-
assignees: RalphHightower
29-
labels: |
30-
maintenance
31-
license
26+
run: |
27+
new_issue_url=$(gh issue create \
28+
--title "$TITLE" \
29+
--assignee "$ASSIGNEES" \
30+
--label "$LABELS" \
31+
--body "$BODY")
32+
if [[ $PINNED == true ]]; then
33+
gh issue pin "$new_issue_url"
34+
fi
35+
env:
36+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
GH_REPO: ${{ github.repository }}
38+
TITLE: "Maintenance: Quarterly Release"
39+
ASSIGNEES: "RalphHightower"
40+
LABELS: "maintenance,release – minor"
41+
BODY: |
42+
# Quarterly Release
43+
44+
- [ ] Create Quarterly Release.
45+
46+
PINNED: false
47+
CLOSE_PREVIOUS: false

0 commit comments

Comments
 (0)