Skip to content

Commit

Permalink
checks if base is up to date before release
Browse files Browse the repository at this point in the history
  • Loading branch information
taukakao committed Aug 5, 2024
1 parent a808d91 commit bf82a1c
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/vib-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,28 @@ 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/core-image

- name: Check if 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
needs: [verify-image, check_base_status]
permissions:
contents: write # Allow actions to create release
packages: write # Allow pushing images to GHCR
Expand Down

0 comments on commit bf82a1c

Please sign in to comment.