Skip to content

Commit ddd5d4c

Browse files
committed
chore: update GitHub Actions workflow to use pull_request and simplify checkout steps
1 parent d77da1c commit ddd5d4c

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

.github/workflows/releases-dev.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ name: 🚀 (DEV) Liberando versiones
22

33
on:
44
workflow_dispatch:
5-
pull_request_target:
5+
pull_request:
66
branches:
77
- builderbot-dev
8-
types: [opened, synchronize, reopened]
98

109
concurrency:
1110
group: ${{ github.workflow }}-${{ github.ref }}
@@ -22,9 +21,6 @@ jobs:
2221
steps:
2322
- name: Checkout
2423
uses: actions/checkout@v4
25-
with:
26-
ref: ${{ github.event.pull_request.head.sha || github.ref }}
27-
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
2824

2925
- uses: pnpm/action-setup@v4
3026

@@ -54,9 +50,6 @@ jobs:
5450
steps:
5551
- name: Checkout
5652
uses: actions/checkout@v4
57-
with:
58-
ref: ${{ github.event.pull_request.head.sha || github.ref }}
59-
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
6053

6154
- uses: pnpm/action-setup@v4
6255

@@ -96,12 +89,11 @@ jobs:
9689
packages: write
9790
id-token: write
9891
steps:
99-
- name: Checkout PR
92+
- name: Checkout
10093
uses: actions/checkout@v4
10194
with:
10295
fetch-depth: 0
103-
ref: ${{ github.event.pull_request.head.sha || github.ref }}
104-
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
96+
ref: ${{ github.head_ref || github.ref_name }}
10597

10698
- uses: pnpm/action-setup@v4
10799

0 commit comments

Comments
 (0)