Skip to content

Commit

Permalink
chore: move dev images to a new package, set branch name correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
4141done committed Feb 26, 2024
1 parent c318f4d commit 9dbf82b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/dev-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,18 @@ jobs:

- name: Get Branch Name
id: getBranchName
run: echo "branch_name=$(git branch --contains ${{ steps.getRef.outputs.pr_ref }} | awk 'NR==1' | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')" >> "$GITHUB_OUTPUT"
run: echo "branch_name=$(gh pr view $PR_NUMBER --repo ${{ github.repository }} --json headRefName | jq -r '.headRefName')" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.issue.number }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

# Docker build setup
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand Down

0 comments on commit 9dbf82b

Please sign in to comment.