fix: Add database connection variable to actions #66
Workflow file for this run
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
name: "Pull Request Labeler" | |
on: | |
pull_request_target: | |
types: [opened] | |
jobs: | |
new-pr: | |
permissions: | |
contents: read | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: "Comment to PR and add labels" | |
uses: actions/github-script@v6 | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN}} | |
script: | | |
var comment = "Hello 👋, thank you for opening new PR to OqixTS 💗\n\n Please, wait till somebody will review your PR.\n" | |
github.rest.issues.createComment({ | |
issue_number: ${{ github.event.number }}, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: comment | |
}) | |
- name: Add review-needed label | |
uses: actions-ecosystem/action-add-labels@v1 | |
with: | |
labels: review-needed |