Skip to content

Commit

Permalink
Auto-comment on new issues stating which TLS BR and EVG versions were…
Browse files Browse the repository at this point in the history
… active at the time (cabforum#521)
  • Loading branch information
XolphinMartijn authored Jun 8, 2024
1 parent 20af1b2 commit 7be6839
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/tag-version-at-issue-creation.yml
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 }}

0 comments on commit 7be6839

Please sign in to comment.