aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorclassabbyamp <void@placeviolette.net>2023-01-28 11:46:52 +0000
committerMichael Aldridge <aldridge.mac@gmail.com>2023-01-30 02:54:40 +0000
commit08f062aad39c7b28a92e865c20c93dbcc193d11d (patch)
tree7ec8a7c7acdb13f47101b28855c8f8801551495a /.github/workflows
parentcf1389ff694c7d171f2558fb8524355da097ba01 (diff)
downloadvoid-packages-08f062aad39c7b28a92e865c20c93dbcc193d11d.tar
void-packages-08f062aad39c7b28a92e865c20c93dbcc193d11d.tar.gz
void-packages-08f062aad39c7b28a92e865c20c93dbcc193d11d.tar.bz2
void-packages-08f062aad39c7b28a92e865c20c93dbcc193d11d.tar.lz
void-packages-08f062aad39c7b28a92e865c20c93dbcc193d11d.tar.xz
void-packages-08f062aad39c7b28a92e865c20c93dbcc193d11d.tar.zst
void-packages-08f062aad39c7b28a92e865c20c93dbcc193d11d.zip
.github/workflows: use treeless-checkout-action
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yaml34
-rw-r--r--.github/workflows/cycles.yml17
2 files changed, 3 insertions, 48 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 2a89fd11cd0..22cbaa0a1ff 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -27,22 +27,7 @@ jobs:
steps:
- name: Clone and checkout
- run: |
- REMOTE_REF=$(echo ${{ github.ref }} | sed 's;refs/;refs/remotes/;')
- /bin/echo -e '::group::\x1b[32mCloning repository...\x1b[0m'
- git clone --progress --no-checkout --filter=tree:0 \
- "${{ github.server_url }}/${{ github.repository }}" "$PWD"
- git config --global --add gc.auto 0
- git config --global --add safe.directory "$PWD"
- echo "::endgroup::"
- /bin/echo -e '::group::\x1b[32mFetching repository refs...\x1b[0m'
- git fetch --prune --progress --filter=tree:0 origin \
- +refs/heads/*:refs/remotes/origin/* \
- +${{ github.ref }}:"${REMOTE_REF}"
- echo "::endgroup::"
- /bin/echo -e '::group::\x1b[32mChecking out repository...\x1b[0m'
- git checkout --progress --force "${REMOTE_REF}"
- echo "::endgroup::"
+ uses: classabbyamp/treeless-checkout-action@v1
- run: common/travis/changed_templates.sh
- run: common/travis/fetch-xbps.sh
- run: common/travis/fetch-xtools.sh
@@ -87,22 +72,7 @@ jobs:
xbps-install -yu
- name: Clone and checkout
- run: |
- REMOTE_REF=$(echo ${{ github.ref }} | sed 's;refs/;refs/remotes/;')
- /bin/echo -e '::group::\x1b[32mCloning repository...\x1b[0m'
- git clone --progress --no-checkout --filter=tree:0 \
- "${{ github.server_url }}/${{ github.repository }}" "$PWD"
- git config --global --add gc.auto 0
- git config --global --add safe.directory "$PWD"
- echo "::endgroup::"
- /bin/echo -e '::group::\x1b[32mFetching repository refs...\x1b[0m'
- git fetch --prune --progress --filter=tree:0 origin \
- +refs/heads/*:refs/remotes/origin/* \
- +${{ github.ref }}:"${REMOTE_REF}"
- echo "::endgroup::"
- /bin/echo -e '::group::\x1b[32mChecking out repository...\x1b[0m'
- git checkout --progress --force "${REMOTE_REF}"
- echo "::endgroup::"
+ uses: classabbyamp/treeless-checkout-action@v1
- name: Create hostrepo and prepare masterdir
run: |
ln -s "$(pwd)" /hostrepo &&
diff --git a/.github/workflows/cycles.yml b/.github/workflows/cycles.yml
index be631da5f27..4c3aeb42cc2 100644
--- a/.github/workflows/cycles.yml
+++ b/.github/workflows/cycles.yml
@@ -27,22 +27,7 @@ jobs:
xbps-install -y python3-networkx github-cli
- name: Clone and checkout
- run: |
- REMOTE_REF=$(echo ${{ github.ref }} | sed 's;refs/;refs/remotes/;')
- /bin/echo -e '::group::\x1b[32mCloning repository...\x1b[0m'
- git clone --progress --no-checkout --filter=tree:0 \
- "${{ github.server_url }}/${{ github.repository }}" "$PWD"
- git config --global --add gc.auto 0
- git config --global --add safe.directory "$PWD"
- echo "::endgroup::"
- /bin/echo -e '::group::\x1b[32mFetching repository refs...\x1b[0m'
- git fetch --prune --progress --filter=tree:0 origin \
- +refs/heads/*:refs/remotes/origin/* \
- +${{ github.ref }}:"${REMOTE_REF}"
- echo "::endgroup::"
- /bin/echo -e '::group::\x1b[32mChecking out repository...\x1b[0m'
- git checkout --progress --force "${REMOTE_REF}"
- echo "::endgroup::"
+ uses: classabbyamp/treeless-checkout-action@v1
- name: Create hostrepo and prepare masterdir
run: |