Skip to content

Commit f09f971

Browse files
authored
Create request-ci.yml
1 parent 2a79954 commit f09f971

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/request-ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: "Request CI (no secrets)"
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened]
5+
6+
jobs:
7+
smoke-test:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- name: Show runner and PR info
12+
run: |
13+
echo "Event: ${{ github.event_name }}#${{ github.event.action }}"
14+
echo "Head repo: ${{ github.event.pull_request.head.repo.full_name }}"
15+
- name: Try to read SECRET (`MY_SECRET`)
16+
run: |
17+
if [ -z "${{ secrets.MY_SECRET }}" ]; then
18+
echo "⚠️ MY_SECRET is empty (as expected for pull_request)"
19+
else
20+
echo "❌ MY_SECRET is: ${{ secrets.MY_SECRET }}"
21+
fi

0 commit comments

Comments
 (0)