Skip to content

Commit

Permalink
Merge tag 'v0.5.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlesne committed Jan 12, 2024
2 parents 8fcab96 + 4797ebc commit 28a550c
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,6 @@ jobs:
org.opencontainers.image.documentation=https://github.com/${{ env.CONTAINER_NAME }}
org.opencontainers.image.vendor=${{ github.actor }}
- name: Store tag
id: tag
run: |
branch=$(echo "${{ github.ref_name }}" | sed 's/\//-/g')
tag=$(echo "${{ steps.meta.outputs.tags }}" | grep -m1 $branch)
echo "tag=$tag" >> $GITHUB_OUTPUT
- name: Build/push container
uses: docker/[email protected]
with:
Expand Down Expand Up @@ -185,7 +178,7 @@ jobs:
uses: actions/[email protected]
with:
script: |
const isMain = context.ref == `refs/heads/${context.payload.repository.default_branch}`;
const isMain = context.ref == `refs/heads/main`;
const repoName = context.repo.repo;
console.log(isMain ? 'Creating release for default branch' : 'Creating release for non-default branch');
Expand All @@ -212,7 +205,7 @@ jobs:
- create-release
- init
# Only publish on non-scheduled default branch
if: (github.event_name != 'schedule') && (github.ref == 'refs/heads/${context.payload.repository.default_branch}')
if: (github.event_name != 'schedule') && (github.ref == 'refs/heads/main')
steps:
- name: publish release
id: publish-release
Expand Down

0 comments on commit 28a550c

Please sign in to comment.