Merge pull request #2398 from gkbishnoi07/WEB-133-fix-git-hub-actions-workflow-to-use-main-instead-of-master-branch

WEB-133 Fix GitHub Actions workflow to use main branch instead of master
This commit is contained in:
Felix van Hove
2025-04-11 18:39:17 +02:00
committed by GitHub
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -4,9 +4,9 @@ name: build-run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [master]
branches: [main]
pull_request:
branches: [master]
branches: [main]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
@@ -2,7 +2,7 @@ name: Publish Image in Docker Hub
on:
push:
branches: [master]
branches: [main]
jobs:
build:
@@ -43,7 +43,7 @@ jobs:
run: |
TAGS="--tag $DOCKER_ORGANIZATION/web-app:${{ steps.extract_branch.outputs.branch }}"
if [ "${{ steps.extract_branch.outputs.branch }}" == "master" ]; then
if [ "${{ steps.extract_branch.outputs.branch }}" == "main" ]; then
TAGS="$TAGS --tag $DOCKER_ORGANIZATION/web-app:${{ steps.git_hashes.outputs.short_hash }} --tag $DOCKER_ORGANIZATION/web-app:${{ steps.git_hashes.outputs.long_hash }}"
fi
+1 -1
View File
@@ -1,5 +1,5 @@
# https://github.com/marketplace/actions/close-stale-issues
# https://github.com/actions/stale/blob/master/action.yml
# https://github.com/actions/stale/blob/main/action.yml
# https://github.com/actions/stale
name: Mark stale issues and pull requests
on:
+2 -2
View File
@@ -2,9 +2,9 @@ name: Tests
on:
push:
branches: [master]
branches: [main]
pull_request:
branches: [master]
branches: [main]
jobs:
testRigor: