mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-25 23:39:37 -05:00
Update with next
This commit is contained in:
parent
58bdd358c6
commit
71d9fd1c87
18
.github/workflows/create_nightly_release.yml
vendored
18
.github/workflows/create_nightly_release.yml
vendored
@ -35,6 +35,7 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@master
|
||||||
with:
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
ref: next
|
ref: next
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Git Sumbodule Update
|
- name: Git Sumbodule Update
|
||||||
@ -52,6 +53,14 @@ jobs:
|
|||||||
- name: Create SD Card ZIP
|
- name: Create SD Card ZIP
|
||||||
run: |
|
run: |
|
||||||
zip -r sdcard.zip sdcard
|
zip -r sdcard.zip sdcard
|
||||||
|
- name: Create changelog
|
||||||
|
run: |
|
||||||
|
CHANGELOG=$(git log next --since="24 hours" --pretty=format:"- %h - @%an: %s")
|
||||||
|
CHANGELOG="${CHANGELOG//'%'/'%25'}"
|
||||||
|
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
|
||||||
|
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
|
||||||
|
echo "::set-output name=content::$CHANGELOG"
|
||||||
|
id: changelog
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
@ -59,12 +68,13 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
tag_name: nightly-tag-${{ steps.date.outputs.date }}
|
tag_name: nightly-tag-${{ steps.date.outputs.date }}
|
||||||
release_name: Nightly-release - ${{ steps.date.outputs.date }}
|
release_name: Nightly Release - ${{ steps.date.outputs.date }}
|
||||||
body: |
|
body: |
|
||||||
**Nightly release - ${{ steps.date.outputs.date }}**
|
**Nightly release - ${{ steps.date.outputs.date }}**
|
||||||
This build is the latest and greatest, although may not be the most stable as this is a nightly release.
|
This build is the latest and greatest, although may not be the most stable as this is a nightly release.
|
||||||
Version: ${{ steps.version_date.outputs.date }}
|
## Release notes
|
||||||
You can find the changes in this commit ${{ github.sha }}
|
### Revision (${{ steps.version_date.outputs.date }}):
|
||||||
|
${{ steps.changelog.outputs.content }}
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: true
|
prerelease: true
|
||||||
- name: Upload Firmware Asset
|
- name: Upload Firmware Asset
|
||||||
@ -85,5 +95,5 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: ./sdcard.zip
|
asset_path: ./sdcard.zip
|
||||||
asset_name: mayhem_nightly_${{ steps.date.outputs.date }}_COPY_TO_SDCARD.zip
|
asset_name: mayhem_nightly_${{ steps.version_date.outputs.date }}_COPY_TO_SDCARD.zip
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
Loading…
Reference in New Issue
Block a user