n2n/.github/workflows/debug.yml
Hamish Coleman 6c3ccadde1 Try to make debug workflow demand triggerable
The docs claim that by adding the right `on:` event, the job can be
manually triggered from the github UI.

https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#workflow_dispatch

Tests show that it doesnt work, but I can leave it here for reference.
2021-11-01 19:15:23 +00:00

55 lines
1.3 KiB
YAML

---
name: Debug
on:
workflow_dispatch:
jobs:
# Oh, github, for a company that is built around the git VCS, how is it
# that you have managed to break the repositories so much?
#
debug_github_repo:
name: Debug Github Repo
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Fix Checkout
run: |
git fetch --force --tags
- name: Debug data output
run: |
echo ==========
echo git status
git status
echo ==========
echo git tag
git tag
echo ==========
echo git describe
git describe || true
echo ==========
echo git for-each-ref refs/heads
git for-each-ref refs/heads
echo ==========
echo git for-each-ref refs/tags
git for-each-ref refs/tags
echo ==========
echo ls .git/refs/heads
ls .git/refs/heads
echo ==========
echo ls .git/refs/tags
ls .git/refs/tags
echo ==========
TYPE=$(git cat-file -t $GITHUB_REF)
echo REF=$GITHUB_REF
echo TAGTYPE=$TYPE
echo ==========
echo git cat-file $TYPE $GITHUB_REF
git cat-file $TYPE $GITHUB_REF