Skip to content

Commit

Permalink
CD: Set the fetch-depth to 100
Browse files Browse the repository at this point in the history
  • Loading branch information
iovxw committed Jun 6, 2020
1 parent 2fb0e5f commit 634c459
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
fetch-depth: 100
- name: Fetch all tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Generate Changelog
id: changelog
run: |
prev_tag=$(git describe --abbrev=0 --tags ${{ github.ref }}^)
log=$(git log --oneline --decorate=no $prev_tag..${{ github.ref }})
log="${log//'%'/'%25'}"
log="${log//$'\n'/'%0A'}"
log="${log//$'\r'/'%0D'}"
echo "::set-output name=value::$log"
- name: Install Musl
run: sudo apt install -y musl-tools
- name: Install Rust
Expand All @@ -31,15 +40,6 @@ jobs:
cargo build --release --target=x86_64-unknown-linux-musl
mv ./target/x86_64-unknown-linux-musl/release/rssbot rssbot-$LOCALE-amd64-linux
done
- name: Generate Changelog
id: changelog
run: |
prev_tag=$(git describe --abbrev=0 --tags ${{ github.ref }}^)
log=$(git log --oneline --decorate=no $prev_tag..${{ github.ref }})
log="${log//'%'/'%25'}"
log="${log//$'\n'/'%0A'}"
log="${log//$'\r'/'%0D'}"
echo "::set-output name=value::$log"
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down

0 comments on commit 634c459

Please sign in to comment.