We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0566e7 commit 8c2eaafCopy full SHA for 8c2eaaf
.github/workflows/build.yml
@@ -49,9 +49,12 @@ jobs:
49
cat ${{ github.workspace }}/CHANGELOG.txt
50
echo "Current tag is: $(git rev-list --tags --max-count=1)"
51
52
- - name: Checkout code from main into release branch
+ - name: Ensure clean release branch from main
53
run: |
54
- # Checkout the code of main onto releases
+ # Remove all tracked and untracked files except .git and .github
55
+ find . -mindepth 1 -maxdepth 1 ! -name '.git' ! -name '.github' -exec rm -rf {} +
56
+
57
+ # Copy files from main branch
58
git checkout main -- .
59
60
- name: Build release
0 commit comments