Skip to content

Commit

Permalink
branch name as a variable
Browse files Browse the repository at this point in the history
Signed-off-by: Yash Bagarka <[email protected]>
  • Loading branch information
yash-zededa committed Nov 8, 2023
1 parent b261c72 commit 102963b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
push:
branches:
- "eve-kernel-amd64-v6.1.38-generic"
env:
branch_name: "refs/heads/eve-kernel-amd64-v6.1.38-generic"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -27,13 +29,13 @@ jobs:
make -f Makefile.eve BRANCH?=${GITHUB_REF##*/} kernel-gcc
- name: Log in to Docker Hub
if: github.ref == 'refs/heads/eve-kernel-amd64-v6.1.38-generic'
if: ${{ github.ref == env.branch_name }}
uses: docker/login-action@v3
with:
username: ${{ secrets.RELEASE_DOCKERHUB_ACCOUNT }}
password: ${{ secrets.RELEASE_DOCKERHUB_TOKEN }}

- name: Push eve-kernel-amd64-v6.1.38-generic if PR approved or pushed
if: github.ref == 'refs/heads/eve-kernel-amd64-v6.1.38-generic'
if: ${{ github.ref == env.branch_name }}
run: |
make -f Makefile.eve BRANCH?=${GITHUB_REF##*/} push-gcc

0 comments on commit 102963b

Please sign in to comment.