Throwaway: English comments trial (do not merge) #213

Closed
Tirsvad wants to merge 7 commits from verify-english-comments into main
2 changed files with 4 additions and 40 deletions
Showing only changes of commit 93def5746b - Show all commits
-31
View File
@@ -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"
+4 -9
View File
@@ -1,7 +1,7 @@
name: Verify English comments
# Throwaway (MIL-013 task 8, #204): calls the reusable workflow at main on a
# pull request. Delete with the branch.
# Throwaway (MIL-013 task 8, #204): calls the reusable workflow of the fix branch
# on a pull request. Delete with the branch.
on:
pull_request:
@@ -11,11 +11,6 @@ jobs:
contents: read
issues: 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:
tools-ref: main
debug:
permissions:
contents: read
uses: ./.gitea/workflows/debug-contexts.yml
tools-ref: mil-013-judge-each-line