Skip to content

Commit

Permalink
Show "Run workflow" button
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Vasseur authored and vmcj committed Jun 1, 2024
1 parent e1fcd78 commit b58c97b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-contributor-container-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
push:
branches:
- main
workflow_dispatch:

jobs:
release-contributor:
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/build-domjudge-container-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ on:
push:
branches:
- main
workflow_dispatch:
inputs:
DOMJUDGE_VERSION:
description: 'Version of DOMjudge to build'
required: true
default: 'M.m.p'
DOMJUDGE_LATEST:
description: 'Overwrite the latest tag'
required: true
default: 'true'

env:
DOMJUDGE_VERSION: M.m.p
Expand All @@ -29,6 +39,12 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: If manually dispatched use input variables
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
echo "DOMJUDGE_VERSION=${{ inputs.DOMJUDGE_VERSION }}" >> $GITHUB_ENV
echo "DOMJUDGE_LATEST=${{ inputs.DOMJUDGE_LATEST }}" >> $GITHUB_ENV
- name: If needed overwrite the DOMJUDGE_VERSION for this run
run: |
if [ ${{ env.DOMJUDGE_VERSION }} != "M.m.p" ]; then
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-gitlab-container-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
push:
branches:
- main
workflow_dispatch:

jobs:
build-gitlab:
Expand Down

0 comments on commit b58c97b

Please sign in to comment.