Skip to content

Commit 7769f22

Browse files
committed
ci: create a workflow which simply logs some information for testing
Create a workflow which simply logs some information about the github context and the files that are checked out. This is being created to be able to test out how the "Require workflows to pass before merging" enforcement in the rulesets works. The idea is that this workflow will run on pull_request_target events, but since its just logging it will always pass
1 parent 8361565 commit 7769f22

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Worklow Testing
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, synchronize, reopened]
6+
7+
# Declare default permissions as read only.
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
commit_message_based_labels:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
16+
- name: Log repository details
17+
run: |
18+
echo "Repository Owner: ${{ github.repository_owner }}"
19+
echo "Repository Name: ${{ github.repository }}"
20+
echo "Commit SHA: ${{ github.sha }}"
21+
echo "Ref: ${{ github.ref }}"
22+
echo "Head Ref: ${{ github.head_ref }}"
23+
echo "Base Ref: ${{ github.base_ref }}" # For pull requests
24+
echo "Workflow: ${{ github.workflow }}"
25+
echo "Run ID: ${{ github.run_id }}"
26+
echo "Run Number: ${{ github.run_number }}"
27+
echo "Event Name: ${{ github.event_name }}"
28+
- name: List the files
29+
run: ls -al

0 commit comments

Comments
 (0)