Skip to content

Commit

Permalink
Get labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Cal-L committed Oct 13, 2023
1 parent cdddf6e commit dc0edc7
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/bitrise-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ jobs:
#!/bin/bash
echo "Trigger?."
# - name: Checkout code
# uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v2

# - name: Get PR details
# id: pr_details
# uses: actions/github-script@v3
# with:
# github-token: ${{secrets.GITHUB_TOKEN}}
# script: |
# const pr = await github.pulls.get({
# owner: context.repo.owner,
# repo: context.repo.repo,
# pull_number: context.issue.number
# });
# return pr.data.labels.map(label => label.name);
- name: Get PR details
id: pr_details
uses: actions/github-script@v3
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const pr = await github.pulls.get({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number
});
return pr.data.labels.map(label => label.name);
# - name: Conditionally start Bitrise build
# run: echo "Skipping step"
Expand Down

0 comments on commit dc0edc7

Please sign in to comment.