Skip to content

Commit

Permalink
Remove release-kernel-patch from build_PR.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDuartePT committed Oct 6, 2023
1 parent 65dbcd8 commit 9031538
Showing 1 changed file with 1 addition and 61 deletions.
62 changes: 1 addition & 61 deletions .github/workflows/build_PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,66 +79,6 @@ jobs:
run: ./deploy/python_install_pip_pkg.sh
shell: bash

release-kernel-patch:
needs: [build, run-kernel-module-test, run-kernel-dkms-install-test, run-tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check if tagged
id: check_if_tagged
run: |
otag=$(git tag --points-at HEAD)
echo "Tag is ${otag}"
if [ -z "$otag" ]
then
hastag=0
else
hastag=1
fi
echo "hastag=$hastag" >> $GITHUB_OUTPUT
- name: Build kernel patch
if: steps.check_if_tagged.outputs.hastag == 1
run: ./deploy/build_kernelpatch.sh
shell: bash
- name: Set tag name
if: steps.check_if_tagged.outputs.hastag == 1
id: tag
run: |
tag=$(git describe --tags --abbrev=0)
echo "tag=$tag" >> $GITHUB_OUTPUT
tag_version=$(git describe --tags --abbrev=0 | sed 's/[^0-9.]*//g')
echo "tag_version=$tag_version" >> $GITHUB_OUTPUT
- name: Create Draft Release
if: steps.check_if_tagged.outputs.hastag == 1
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag.outputs.tag }}
release_name: ${{ steps.tag.outputs.tag }}
draft: true
prerelease: false
- name: Upload Release - Kernel Patch
if: steps.check_if_tagged.outputs.hastag == 1
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: /tmp/linux/linux/0001-Add-legion-laptop-v${{ steps.tag.outputs.tag_version }}.patch
asset_name: 0001-Add-legion-laptop-v${{ steps.tag.outputs.tag_version }}.patch
asset_content_type: text/plain
- name: Publish Release
if: steps.check_if_tagged.outputs.hastag == 1
uses: eregon/publish-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ steps.create_release.outputs.id }}

test-in-docker-container:
needs: [build, run-tests]
runs-on: ubuntu-latest
Expand All @@ -147,4 +87,4 @@ jobs:
uses: actions/checkout@v3
- name: Build containers and run tests inside them
run: ./deploy/build_containers.sh
shell: bash
shell: bash

0 comments on commit 9031538

Please sign in to comment.