forked from cabforum/servercert
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto-comment on new issues stating which TLS BR and EVG versions were…
… active at the time (cabforum#521)
- Loading branch information
1 parent
20af1b2
commit 7be6839
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Reference TLS BR and EVG version upon issue creation | ||
on: | ||
issues: | ||
types: [opened] | ||
|
||
jobs: | ||
tls-evg-version: | ||
name: Reference TLS BR and EVG version upon issue creation | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Read version from TLS BR | ||
id: read_tlsbr_version | ||
run: | | ||
subtitle=$(grep -Po '(?<=subtitle:\s).*$' docs/BR.md | tr -d '\r') | ||
echo "tlsbr_version=$subtitle" >> $GITHUB_OUTPUT | ||
- name: Read version from EVG | ||
id: read_evg_version | ||
run: | | ||
subtitle=$(grep -Po '(?<=subtitle:\s).*$' docs/EVG.md | tr -d '\r') | ||
echo "evg_version=$subtitle" >> $GITHUB_OUTPUT | ||
- name: Add comment to issue | ||
uses: peter-evans/create-or-update-comment@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
issue-number: ${{ github.event.issue.number }} | ||
body: | | ||
This issue was created based on: | ||
- TLS BR ${{ steps.read_tlsbr_version.outputs.tlsbr_version }} | ||
- EVG ${{ steps.read_evg_version.outputs.evg_version }} | ||