Skip to content

Commit

Permalink
Fix main branch to point to master (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
marrts authored Apr 8, 2024
1 parent 67f2af2 commit 5e4fdd2
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/clang_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches:
- main
pull_request:
paths:
- 'tesseract**'
- '.github/workflows/clang_format.yml'
- '**clang-format'

# allow manually starting this workflow
workflow_dispatch:
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ jobs:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Adjust branch name for Docker tag
run: |
if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
echo "BRANCH_NAME=master" >> $GITHUB_ENV
else
echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
fi
- name: Extract Docker meta-information
id: meta
Expand All @@ -48,7 +56,7 @@ jobs:
prefix=
suffix=
tags: |
type=ref,event=branch,prefix=${{ matrix.distro }}-
type=ref,event=branch,prefix=${{ matrix.distro }}-,value=${{ env.BRANCH_NAME }}
type=raw,event=pr,prefix=${{ matrix.distro }}-,value=master
type=semver,pattern={{major}}.{{minor}},prefix=${{ matrix.distro }}-
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- main
pull_request:
paths:
- 'tesseract**'
- '.github/workflows/ubuntu.yml'
schedule:
- cron: '0 5 * * *'
release:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/unstable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- main
pull_request:
paths:
- 'tesseract**'
- '.github/workflows/unstable.yml'
schedule:
- cron: '0 5 * * *'
release:
Expand Down

0 comments on commit 5e4fdd2

Please sign in to comment.