From 2b9e95f352d5c276d75660c6e5566bbd563c5652 Mon Sep 17 00:00:00 2001 From: steadfasterX Date: Sun, 12 May 2024 12:02:29 +0200 Subject: [PATCH 1/2] ci: add dos patching --- .github/workflows/patch.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/patch.yml diff --git a/.github/workflows/patch.yml b/.github/workflows/patch.yml new file mode 100644 index 000000000000..bec191322a63 --- /dev/null +++ b/.github/workflows/patch.yml @@ -0,0 +1,28 @@ +# https://github.com/marketplace/actions/fork-repo-upstream-sync +name: "Apply divestOS patches" + +on: + workflow_dispatch: # button shown only when in default branch + +# Sets permissions of the GITHUB_TOKEN to allow pushing via github token +permissions: + contents: write # allow git push + +jobs: + sync: + runs-on: ubuntu-latest + name: "Get divest + AXP patches" + + steps: + + - name: Checkout + uses: actions/checkout@v4 + with: + repository: AXP-OS/build + ref: "${{ github.event.repository.name }}" + # REQUIRED if your upstream repo is private (see wiki) + persist-credentials: false + #token: ${{ secrets.GITHUB_TOKEN }} + submodules: true + + From f2697ef3b0d2e2edc249095d13a9a60b2dacfaa2 Mon Sep 17 00:00:00 2001 From: steadfasterX Date: Sun, 12 May 2024 15:16:45 +0200 Subject: [PATCH 2/2] Update patch.yml --- .github/workflows/patch.yml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/patch.yml b/.github/workflows/patch.yml index bec191322a63..2fcf87356512 100644 --- a/.github/workflows/patch.yml +++ b/.github/workflows/patch.yml @@ -1,4 +1,3 @@ -# https://github.com/marketplace/actions/fork-repo-upstream-sync name: "Apply divestOS patches" on: @@ -15,14 +14,24 @@ jobs: steps: - - name: Checkout + - name: Checkout dOS uses: actions/checkout@v4 with: + path: dos repository: AXP-OS/build - ref: "${{ github.event.repository.name }}" - # REQUIRED if your upstream repo is private (see wiki) - persist-credentials: false - #token: ${{ secrets.GITHUB_TOKEN }} + ref: ${{ github.head_ref || github.ref_name }} submodules: true + lfs: true - + - name: Checkout repo + uses: actions/checkout@v4 + with: + path: dos/Build/LineageOS-20.0/kernel/google/gs201/private + submodules: true + lfs: true + + - name: debug + run: | + ls -la + ls -la dos + ls -la dos/Build/LineageOS-20.0