Skip to content

Commit c8c05f2

Browse files
committed
PoC: minimal tag-only workflow to test trigger from arbitrary branch
1 parent 9f4b6f3 commit c8c05f2

7 files changed

Lines changed: 21 additions & 758 deletions

File tree

‎.github/workflows/build-image.yml‎

Lines changed: 0 additions & 71 deletions
This file was deleted.

‎.github/workflows/distribution.yml‎

Lines changed: 0 additions & 84 deletions
This file was deleted.

‎.github/workflows/poc.yml‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: PoC - tag trigger fires from arbitrary branch
2+
on:
3+
push:
4+
tags:
5+
- 'v[0-9]+.[0-9]+.[0-9]+*'
6+
permissions: read-all
7+
jobs:
8+
proof:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Print trigger context
12+
run: |
13+
echo "SHA: ${{ github.sha }}"
14+
echo "Ref: ${{ github.ref }}"
15+
echo "Ref name: ${{ github.ref_name }}"
16+
echo "Event: ${{ github.event_name }}"
17+
echo ""
18+
echo "The workflow file that just ran was defined on the tagged commit."
19+
echo "The tagged commit lives on branch poc/tag-trigger-any-branch — NOT a release branch."
20+
echo "This proves the tag-push trigger fires regardless of what branch the tagged commit is on,"
21+
echo "and that the workflow file used is the one at the tagged commit, not master's."

‎.github/workflows/scorecards.yml‎

Lines changed: 0 additions & 69 deletions
This file was deleted.

‎.github/workflows/scripts/install-docker.sh‎

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)