Skip to content

Commit

Permalink
ci: remove base check in favor of tags
Browse files Browse the repository at this point in the history
Co-authored-by: K.B.Dharun Krishna <[email protected]>
  • Loading branch information
mirkobrombin and kbdharun committed Sep 20, 2024
1 parent b38a20d commit 0325cf5
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions .github/workflows/vib-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,9 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}

check_base_status:
runs-on: ubuntu-latest
steps:
- name: Clone base image
if: ${{ github.ref_type == 'tag' }}
uses: actions/checkout@v4
with:
repository: Vanilla-OS/pico-image

- name: Check if the base is up to date
if: ${{ github.ref_type == 'tag' }}
run: |
git fetch origin
main_head=$( git rev-parse origin/main )
dev_head=$( git rev-parse origin/dev )
echo main branch is at: $main_head
echo dev branch is at: $dev_head
[ "$main_head" = "$dev_head" ]
build:
runs-on: ubuntu-latest
needs: [verify-image, check_base_status]
needs: [verify-image]
permissions:
contents: write # Allow actions to create release
packages: write # Allow pushing images to GHCR
Expand Down

0 comments on commit 0325cf5

Please sign in to comment.