diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index 4da70a2..118bc0a 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -15,4 +15,4 @@ jobs: if: github.actor == 'dependabot[bot]' steps: - name: Enable auto-merge - run: gh pr merge --auto --rebase "${{ github.event.pull_request.number }}" + run: gh pr merge --auto --rebase --repo "${{ github.repository }}" "${{ github.event.pull_request.number }}" diff --git a/.github/workflows/fork-integration-trigger.yml b/.github/workflows/fork-integration-trigger.yml index 0046ce6..b555d61 100644 --- a/.github/workflows/fork-integration-trigger.yml +++ b/.github/workflows/fork-integration-trigger.yml @@ -29,7 +29,7 @@ jobs: - name: Get PR head SHA and check for fork id: pr run: | - pr=$(gh pr view ${{ github.event.issue.number }} --json headRefOid,isCrossRepository) + pr=$(gh pr view ${{ github.event.issue.number }} --repo "$GITHUB_REPOSITORY" --json headRefOid,isCrossRepository) read -r ref is_fork < <(echo "$pr" | jq -r '[.headRefOid, (.isCrossRepository | tostring)] | @tsv') if [[ "$is_fork" == "false" ]]; then echo "This command is only needed for fork PRs. Integration tests run automatically for PRs from this repository." @@ -46,6 +46,6 @@ jobs: - name: Trigger integration tests run: | for workflow in s3-integration.yml gcs-integration.yml alioss-integration.yml azurebs-integration.yml dav-integration.yml; do - gh workflow run "$workflow" --ref ${{ github.event.repository.default_branch }} -f pr_ref=${{ steps.pr.outputs.ref }} & + gh workflow run "$workflow" --repo "$GITHUB_REPOSITORY" --ref ${{ github.event.repository.default_branch }} -f pr_ref=${{ steps.pr.outputs.ref }} & done wait