Throwaway: English comments trial (do not merge) #213
@@ -0,0 +1,31 @@
|
||||
name: Debug contexts
|
||||
|
||||
# Throwaway (MIL-013 task 8): which of these conditions hold in a called workflow?
|
||||
on:
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
debug:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Print the contexts
|
||||
run: echo "event_name=${{ gitea.event_name }} number=${{ gitea.event.pull_request.number }} author=${{ gitea.event.pull_request.user.login }} base_ref=${{ gitea.base_ref }} api=${{ gitea.api_url }} server=${{ gitea.server_url }} run_number=${{ gitea.run_number }}"
|
||||
- name: Failing step
|
||||
id: failing
|
||||
continue-on-error: true
|
||||
run: exit 1
|
||||
- name: A always()
|
||||
if: ${{ always() }}
|
||||
run: echo "ran A always"
|
||||
- name: B event is pull_request
|
||||
if: ${{ gitea.event_name == 'pull_request' }}
|
||||
run: echo "ran B pull_request"
|
||||
- name: C always and event
|
||||
if: ${{ always() && gitea.event_name == 'pull_request' }}
|
||||
run: echo "ran C always and pull_request"
|
||||
- name: D event via github context
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
run: echo "ran D github.event_name"
|
||||
- name: E no braces
|
||||
if: always() && gitea.event_name == 'pull_request'
|
||||
run: echo "ran E no braces"
|
||||
@@ -14,3 +14,8 @@ jobs:
|
||||
uses: TirSystem/github-action/.gitea/workflows/english-comments.yml@main
|
||||
with:
|
||||
tools-ref: main
|
||||
|
||||
debug:
|
||||
permissions:
|
||||
contents: read
|
||||
uses: ./.gitea/workflows/debug-contexts.yml
|
||||
|
||||
Reference in New Issue
Block a user