Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
anusha1908 authored Apr 29, 2024
1 parent b208ec0 commit d9f7583
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ jobs:
});
const author = context.payload.sender.login;
const isMember = teamMembers.some(member => member.login === author);
if (isMember) {
console.log('Author is a member of opsTrack team');
core.setOutput('opsTrackMember', 'true');
Expand All @@ -45,8 +44,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check if opsTrack member
run: echo "Author is opsTrack member: ${{ needs.check_author_team_membership.outputs.opsTrackMember }}"
id: opsTrack_member_check
run: |
echo "Author is opsTrack member: ${{ needs.check_author_team_membership.outputs.opsTrackMember }}"
- name: Add label if opsTrack member
if: steps.opsTrack_member_check.outputs.opsTrackMember == 'true'
Expand All @@ -60,4 +60,4 @@ jobs:
labels: ['codeowner reviews required']
});
script-output: |
{ token: '${{ secrets.GITHUB_TOKEN }}' }
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d9f7583

Please sign in to comment.