Skip to content

Commit c84c10c

Browse files
author
Evilazaro Alves
committed
refactor standard CI
1 parent cc85c18 commit c84c10c

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/actions/ci/bicep-standard-ci/action.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,25 @@ runs:
1212
# Simulate package update
1313
sudo apt-get update
1414
echo "✅ Packages updated successfully"
15-
15+
16+
- name: Setup Git identity
17+
shell: bash
18+
run: |
19+
git config user.name "github-actions"
20+
git config user.email "github-actions@github.com"
21+
22+
- name: Debug trigger information
23+
shell: bash
24+
run: |
25+
echo "🐛 Debug Information:"
26+
echo "Event name: ${{ github.event_name }}"
27+
echo "Ref: ${{ github.ref }}"
28+
echo "Head ref: ${{ github.head_ref }}"
29+
echo "Base ref: ${{ github.base_ref }}"
30+
echo "Repository: ${{ github.repository }}"
31+
echo "Actor: ${{ github.actor }}"
32+
echo "SHA: ${{ github.sha }}"
33+
1634
- name: Build Accelerator Bicep
1735
shell: bash
1836
run: |

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
steps:
1818
- name: Checkout code
1919
uses: actions/checkout@v4
20+
with:
21+
ref: ${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
2022

2123
- name: Build Bicep Code
2224
uses: ./.github/actions/ci/bicep-standard-ci

0 commit comments

Comments
 (0)