Skip to content

Commit

Permalink
github: fix broken docker-rebuild check
Browse files Browse the repository at this point in the history
  • Loading branch information
emturner committed Oct 4, 2023
1 parent 1b6991c commit c0d3ebd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,23 @@ jobs:
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo df -h
- name: Checkout
uses: actions/checkout@v3

- name: Branches ref
id: branches
shell: bash
run: |
echo "source=$(echo ${{ github.head_ref }} | cut -c -63 | sed -E 's/[^a-z0-9-]+/-/g' | sed -E 's/^-*([a-z0-9-]+[a-z0-9])-*$$/\1/g')" >> $GITHUB_OUTPUT
echo "target=$(echo ${GITHUB_BASE_REF} | cut -c -63 | sed -E 's/[^a-z0-9-]+/-/g' | sed -E 's/^-*([a-z0-9-]+[a-z0-9])-*$$/\1/g')" >> $GITHUB_OUTPUT
echo "branch=$(echo ${{ github.ref }} | perl -pE 's|.*?/.*?/||g' | cut -c -63 | sed -E 's/[^a-z0-9-]+/-/g' | sed -E 's/^-*([a-z0-9-]+[a-z0-9])-*$$/\1/g')" >> $GITHUB_OUTPUT
- name: Fetch branches
run: |
if [ ! -z ${{ steps.branches.outputs.target }} ]; then
git fetch origin ${GITHUB_BASE_REF}
fi
- name: Container tag
id: container_tag
run: |
Expand Down

0 comments on commit c0d3ebd

Please sign in to comment.