Skip to content

Commit

Permalink
Swap ORG to OWNER
Browse files Browse the repository at this point in the history
  • Loading branch information
addyess committed Feb 25, 2025
1 parent 61aaaa2 commit 5bcd751
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/comment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-24.04
outputs:
IS_PR: ${{ steps.call.outputs.IS_PR || steps.run.outputs.IS_PR }}
ORG: ${{ steps.call.outputs.ORG || steps.run.outputs.ORG }}
OWNER: ${{ steps.call.outputs.OWNER || steps.run.outputs.OWNER }}
REPO: ${{ steps.call.outputs.REPO || steps.run.outputs.REPO }}
RUN_ID: ${{ steps.call.outputs.RUN_ID || steps.run.outputs.RUN_ID }}
REPO_FULL_NAME: ${{ steps.call.outputs.REPO_FULL_NAME || steps.run.outputs.REPO_FULL_NAME }}
Expand All @@ -36,7 +36,7 @@ jobs:
echo "RUN_ID=${{ github.run_id }}" >> $GITHUB_OUTPUT
REPO_FULL_NAME="${{ github.repository }}"
parts=(${REPO_FULL_NAME//\// })
echo "ORG=${parts[0]}" >> $GITHUB_OUTPUT
echo "OWNER=${parts[0]}" >> $GITHUB_OUTPUT
echo "REPO=${parts[1]}" >> $GITHUB_OUTPUT
echo "REPO_FULL_NAME=${REPO_FULL_NAME}" >> $GITHUB_OUTPUT
echo "SHA=${{ github.event.pull_request.head.sha }}" >> $GITHUB_OUTPUT
Expand All @@ -46,7 +46,7 @@ jobs:
if: github.event_name == 'workflow_run'
run: |
echo "RUN_ID=${{ github.event.workflow_run.id }}" >> $GITHUB_OUTPUT
echo "ORG=${{ github.event.workflow_run.repository.owner.login }}" >> $GITHUB_OUTPUT
echo "OWNER=${{ github.event.workflow_run.repository.owner.login }}" >> $GITHUB_OUTPUT
echo "REPO=${{ github.event.workflow_run.repository.name }}" >> $GITHUB_OUTPUT
echo "REPO_FULL_NAME=${{ github.event.workflow_run.repository.full_name }}" >> $GITHUB_OUTPUT
echo "SHA=${{ github.event.workflow_run.head_sha }}" >> $GITHUB_OUTPUT
Expand All @@ -72,7 +72,7 @@ jobs:
script: |
const fs = require('fs');
const artifact = '${{ env.ARTIFACT_NAME }}';
const owner = '${{ needs.setup-env.outputs.ORG }}';
const owner = '${{ needs.setup-env.outputs.OWNER }}';
const repo = '${{ needs.setup-env.outputs.REPO }}';
const sha = '${{ needs.setup-env.outputs.SHA }}';
const header = `## Test results for commit ${sha}\n\n`;
Expand Down

0 comments on commit 5bcd751

Please sign in to comment.