Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/follow-merge-sync-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
uses: actions/github-script@v8
id: check-membership
with:
github-token: ${{ secrets.GIT_PAT }}
github-token: ${{ secrets.GIT_PAT || secrets.GITHUB_TOKEN || github.token }}
script: |
const { repo, owner } = context.repo;
try {
Expand All @@ -51,7 +51,7 @@ jobs:
if: steps.check-membership.outputs.result == 'false'
uses: actions/github-script@v8
with:
github-token: ${{ secrets.GIT_PAT }}
github-token: ${{ secrets.GIT_PAT || secrets.GITHUB_TOKEN || github.token }}
script: |
const { repo, owner } = context.repo;
const result = await github.rest.issues.createComment({
Expand All @@ -77,7 +77,7 @@ jobs:
DOWNSTREAM_REPOSITORY: ${{ env.DOWNSTREAM_REPOSITORY }}
DOWNSTREAM_EVENT_TYPE: ${{ env.DOWNSTREAM_EVENT_TYPE }}
with:
github-token: ${{ secrets.GIT_PAT }}
github-token: ${{ secrets.GIT_PAT || secrets.GITHUB_TOKEN || github.token }}
script: |
const { repo, owner } = context.repo;
const pr_head_repository = process.env.PR_HEAD_REPOSITORY;
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/follow-merge-upstream-repo-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
BASE_BRANCH_NAME: "${{ github.event.client_payload.base_branch_name }}"
DEFAULT_BRANCH: "${{ github.event.repository.default_branch }}"
with:
github-token: ${{ secrets.GIT_PAT }}
github-token: ${{ secrets.GIT_PAT || secrets.GITHUB_TOKEN || github.token }}
script: |
const {repo, owner} = context.repo;

Expand Down Expand Up @@ -109,14 +109,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GIT_PAT }}
token: ${{ secrets.GIT_PAT || secrets.GITHUB_TOKEN || github.token }}
fetch-depth: 0
ref: ${{ steps.get-branch.outputs.name }}

- name: Checkout Actions Hub
uses: actions/checkout@v4
with:
token: ${{ secrets.GIT_PAT }}
token: ${{ secrets.GIT_PAT || secrets.GITHUB_TOKEN || github.token }}
repository: HumanSignal/actions-hub
path: ./.github/actions-hub

Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:
with:
repository: ${{ github.event.client_payload.repo_name }}
path: tmp
token: ${{ secrets.GIT_PAT }}
token: ${{ secrets.GIT_PAT || secrets.GITHUB_TOKEN || github.token }}
fetch-depth: 1
ref: ${{ github.event.client_payload.commit_sha }}

Expand Down Expand Up @@ -250,7 +250,7 @@ jobs:
BRANCH_NAME: "${{ steps.get-branch.outputs.name }}"
BASE_BRANCH_NAME: "${{ steps.get-branch.outputs.base_name }}"
with:
github-token: ${{ secrets.GIT_PAT }}
github-token: ${{ secrets.GIT_PAT || secrets.GITHUB_TOKEN || github.token }}
script: |
const { repo, owner } = context.repo;

Expand Down Expand Up @@ -316,7 +316,7 @@ jobs:
if: github.event.client_payload.event_action == 'merged'
uses: actions/github-script@v8
with:
github-token: ${{ secrets.GIT_PAT }}
github-token: ${{ secrets.GIT_PAT || secrets.GITHUB_TOKEN || github.token }}
result-encoding: string
script: |
const { repo, owner } = context.repo;
Expand Down Expand Up @@ -379,7 +379,7 @@ jobs:
id: comment-pr
uses: actions/github-script@v8
with:
github-token: ${{ secrets.GIT_PAT }}
github-token: ${{ secrets.GIT_PAT || secrets.GITHUB_TOKEN || github.token }}
script: |
const { repo, owner } = context.repo;
const pr_number = ${{ steps.get-pr.outputs.number }}
Expand All @@ -397,7 +397,7 @@ jobs:
id: ready-for-review-pr
shell: bash
env:
GIT_PAT: ${{ secrets.GIT_PAT }}
GIT_PAT: ${{ secrets.GIT_PAT || secrets.GITHUB_TOKEN || github.token }}
run: |
echo "$GIT_PAT" | gh auth login --with-token
gh api graphql -F id='${{ steps.get-pr.outputs.node_id }}' -f query='
Expand All @@ -417,7 +417,7 @@ jobs:
steps.check-all-submodules.outputs.result == 'true'
shell: bash
env:
GIT_PAT: ${{ secrets.GIT_PAT }}
GIT_PAT: ${{ secrets.GIT_PAT || secrets.GITHUB_TOKEN || github.token }}
run: |
echo "$GIT_PAT" | gh auth login --with-token
gh api graphql -f pull='${{ steps.get-pr.outputs.node_id }}' -f query='
Expand Down Expand Up @@ -445,7 +445,7 @@ jobs:
uses: actions/github-script@v8
id: get-pr
with:
github-token: ${{ secrets.GIT_PAT }}
github-token: ${{ secrets.GIT_PAT || secrets.GITHUB_TOKEN || github.token }}
script: |
const {repo, owner} = context.repo;
const branchName = '${{ github.event.client_payload.branch_name }}';
Expand Down Expand Up @@ -482,7 +482,7 @@ jobs:
id: close-pr
uses: actions/github-script@v8
with:
github-token: ${{ secrets.GIT_PAT }}
github-token: ${{ secrets.GIT_PAT || secrets.GITHUB_TOKEN || github.token }}
script: |
const { repo, owner } = context.repo;
const listPullsResponse = ${{ steps.get-pr.outputs.result }}
Expand All @@ -501,7 +501,7 @@ jobs:
id: convert-pr-to-draft
shell: bash
env:
GIT_PAT: ${{ secrets.GIT_PAT }}
GIT_PAT: ${{ secrets.GIT_PAT || secrets.GITHUB_TOKEN || github.token }}
run: |
echo "$GIT_PAT" | gh auth login --with-token
gh api graphql -F id='${{ fromJson(steps.get-pr.outputs.result)[0].node_id }}' -f query='
Expand All @@ -520,7 +520,7 @@ jobs:
id: ready-for-review-pr
shell: bash
env:
GIT_PAT: ${{ secrets.GIT_PAT }}
GIT_PAT: ${{ secrets.GIT_PAT || secrets.GITHUB_TOKEN || github.token }}
run: |
echo "$GIT_PAT" | gh auth login --with-token
gh api graphql -F id='${{ fromJson(steps.get-pr.outputs.result)[0].node_id }}' -f query='
Expand Down
Loading