Skip to content

Commit

Permalink
var teset
Browse files Browse the repository at this point in the history
  • Loading branch information
markdoeswork committed Sep 24, 2024
1 parent 5e96c48 commit 531d7ff
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/github-actions-comment-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,30 @@ jobs:
comment:
runs-on: ubuntu-latest
steps:
- name: set versions
run: |
new_ruby_version="123"
new_npm_version="456"
- name: Leave PR comment
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RUBY_GEM_VERSION: ${{ env.new_ruby_version }}
RUBY_GEM_LINK: https://rubygems.org/gems/playbook_ui/versions/${{env.new_ruby_version}}
NPM_VERSION: ${{ env.new_npm_version }}
NPM_LINK: https://www.npmjs.com/package/playbook-ui/v/${{env.new_npm_version}}
RUBY_GEM_VERSION: '123'
RUBY_GEM_LINK: "https://rubygems.org/gems/playbook_ui/versions/${{env.RUBY_GEM_VERSION}}"
NPM_VERSION: '456'
NPM_LINK: "https://www.npmjs.com/package/playbook-ui/v/${{env.NPM_VERSION}}"
run: |
curl -H "Authorization: token ${GITHUB_TOKEN}" \
-X POST \
-d '{"body": "Release Candidate Created \n\n Your RC for Ruby Gems is [${{env.RUBY_GEM_VERSION}}](${{env.RUBY_GEM_LINK}}) \n\n Your RC for NPM is [${{env.NPM_VERSION}}](${{env.NPM_LINK}}) "}' \
"https://api.github.com/repos/${{ github.repository }}/issues/${PR_NUMBER}/comments"
- name: comment-two
uses: actions/github-script@v7
env:
AVAR: '789'
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: "Here is the link to your Ruby Gem: ${{env.new_ruby_version}} "
body: "Here is the link ${{ env.AVAR }} to your Ruby Gem: ${{env.RUBY_GEM_VERSION}}"
})
Expand Down

0 comments on commit 531d7ff

Please sign in to comment.