Skip to content

Commit b58c97b

Browse files
Michael Vasseurvmcj
authored andcommitted
Show "Run workflow" button
1 parent e1fcd78 commit b58c97b

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

.github/workflows/build-contributor-container-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
push:
99
branches:
1010
- main
11+
workflow_dispatch:
1112

1213
jobs:
1314
release-contributor:

.github/workflows/build-domjudge-container-release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ on:
44
push:
55
branches:
66
- main
7+
workflow_dispatch:
8+
inputs:
9+
DOMJUDGE_VERSION:
10+
description: 'Version of DOMjudge to build'
11+
required: true
12+
default: 'M.m.p'
13+
DOMJUDGE_LATEST:
14+
description: 'Overwrite the latest tag'
15+
required: true
16+
default: 'true'
717

818
env:
919
DOMJUDGE_VERSION: M.m.p
@@ -29,6 +39,12 @@ jobs:
2939
username: ${{ secrets.DOCKERHUB_USERNAME }}
3040
password: ${{ secrets.DOCKERHUB_TOKEN }}
3141

42+
- name: If manually dispatched use input variables
43+
if: ${{ github.event_name == 'workflow_dispatch' }}
44+
run: |
45+
echo "DOMJUDGE_VERSION=${{ inputs.DOMJUDGE_VERSION }}" >> $GITHUB_ENV
46+
echo "DOMJUDGE_LATEST=${{ inputs.DOMJUDGE_LATEST }}" >> $GITHUB_ENV
47+
3248
- name: If needed overwrite the DOMJUDGE_VERSION for this run
3349
run: |
3450
if [ ${{ env.DOMJUDGE_VERSION }} != "M.m.p" ]; then

.github/workflows/build-gitlab-container-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
push:
77
branches:
88
- main
9+
workflow_dispatch:
910

1011
jobs:
1112
build-gitlab:

0 commit comments

Comments
 (0)