diff --git a/.github/workflows/github-actions-comment-test.yml b/.github/workflows/github-actions-comment-test.yml index 7b336602d0..32fbdc9714 100644 --- a/.github/workflows/github-actions-comment-test.yml +++ b/.github/workflows/github-actions-comment-test.yml @@ -8,18 +8,14 @@ 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 \ @@ -27,13 +23,15 @@ jobs: "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}}" })