Skip to content

Commit

Permalink
Update extended_comment.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorMirosavljevicHTEC authored Apr 3, 2024
1 parent 3848e8b commit 4c158c0
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/extended_comment.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
name: Ext comment test

on:
workflow_dispatch:

jobs:
new_issue_comment:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Create issue
uses: dacbd/[email protected]
id: create_issue
with:
token: ${{ secrets.GH_TEST_TOKEN }}
title: WEEKLY TEST
- name: Get issue number
run: echo "Issue Number is ${{ steps.create_issue.outputs.number }}"
- id: get-comment-body
run: |
body="$(cat /home/runner/work/testing/testing/test.md)"
body="${body//'%'/'%25'}"
body="${body//$'\n'/'%0A'}"
body="${body//$'\r'/'%0D'}"
echo "::set-output name=body::$body"
- name: Post comment
uses: peter-evans/[email protected]
with:
token: ${{ secrets.GH_TEST_TOKEN }}
issue-number: ${{ steps.create_issue.outputs.number }}
body: ${{ steps.get-comment-body.outputs.body }}



0 comments on commit 4c158c0

Please sign in to comment.