Skip to content

Commit

Permalink
ci(Cirrus-CI): support pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
adonis0147 committed Nov 4, 2024
1 parent eda0868 commit cb7795c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,18 @@ build_packages_task:
architecture: arm64

clone_script: |
git clone -b "${CIRRUS_BRANCH}" https://github.com/adonis0147/devel-env
git clone https://github.com/adonis0147/devel-env
cd devel-env
git fetch --tags
git fetch --all --tags
if [[ -z "${CIRRUS_PR}" ]]; then
git checkout "${CIRRUS_BRANCH}"
else
git fetch origin "pull/${CIRRUS_PR}/head:pr_${CIRRUS_PR}"
git checkout "pr_${CIRRUS_PR}"
fi
git status
prepare_script: |
uname -a
Expand Down

0 comments on commit cb7795c

Please sign in to comment.