Throwaway: English comments trial (do not merge) #213
@@ -1,31 +0,0 @@
|
|||||||
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: F number not empty
|
|
||||||
if: ${{ always() && gitea.event.pull_request.number != '' }}
|
|
||||||
run: echo "ran F number not empty"
|
|
||||||
- name: G number truthy
|
|
||||||
if: ${{ always() && gitea.event.pull_request.number }}
|
|
||||||
run: echo "ran G number truthy"
|
|
||||||
- name: H pull_request object
|
|
||||||
if: ${{ always() && gitea.event.pull_request }}
|
|
||||||
run: echo "ran H pull_request object"
|
|
||||||
- name: I base_ref not empty
|
|
||||||
if: ${{ always() && gitea.base_ref != '' }}
|
|
||||||
run: echo "ran I base_ref not empty"
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
name: Verify English comments
|
name: Verify English comments
|
||||||
|
|
||||||
# Throwaway (MIL-013 task 8, #204): calls the reusable workflow at main on a
|
# Throwaway (MIL-013 task 8, #204): calls the reusable workflow of the fix branch
|
||||||
# pull request. Delete with the branch.
|
# on a pull request. Delete with the branch.
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
@@ -11,11 +11,6 @@ jobs:
|
|||||||
contents: read
|
contents: read
|
||||||
issues: write
|
issues: write
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
uses: TirSystem/github-action/.gitea/workflows/english-comments.yml@main
|
uses: TirSystem/github-action/.gitea/workflows/english-comments.yml@mil-013-judge-each-line
|
||||||
with:
|
with:
|
||||||
tools-ref: main
|
tools-ref: mil-013-judge-each-line
|
||||||
|
|
||||||
debug:
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
uses: ./.gitea/workflows/debug-contexts.yml
|
|
||||||
|
|||||||
Reference in New Issue
Block a user