Skip to content

Commit 46db009

Browse files
committed
fix: use PAT token for sem ver
1 parent d82d99e commit 46db009

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.github/workflows/build_devnet.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
name: Build and Push Devnet Image
22

33
on:
4-
workflow_run:
5-
workflows: ['Semantic Versioning']
6-
types: [completed]
7-
branches: [develop]
4+
push:
5+
tags: ['v*']
86
# also allow manual runs
97
workflow_dispatch:
108

119
jobs:
1210
build:
13-
if: github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success'
11+
if: github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags/v')
1412
runs-on: ubuntu-latest
1513
permissions:
1614
contents: read
@@ -19,7 +17,7 @@ jobs:
1917
- name: Checkout source
2018
uses: actions/checkout@v4
2119
with:
22-
ref: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.head_sha || github.sha }}
20+
ref: ${{ github.sha }}
2321

2422
- uses: docker/setup-qemu-action@v3
2523
- uses: docker/setup-buildx-action@v3

.github/workflows/sem_ver.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
uses: actions/checkout@v4
2626
with:
2727
fetch-depth: 0 # fetch all history + tags
28+
token: ${{ secrets.PAT_TOKEN }}
2829

2930
- name: Configure git
3031
run: |

0 commit comments

Comments
 (0)