Fix versions.txt append

This commit is contained in:
Aurora Lahtela 2022-08-18 15:31:25 +03:00 committed by GitHub
parent 79c4c8d667
commit b683cf41db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ on:
jobs: jobs:
update_versions_txt: update_versions_txt:
name: Update version.txt name: Update versions.txt
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout 🛎️ - name: Checkout 🛎️
@ -24,17 +24,17 @@ jobs:
if: ${{ github.event.release.prerelease == true }} if: ${{ github.event.release.prerelease == true }}
run: | run: |
echo "DEV|${{ github.event.release.tag_name }}|${{ env.RELEASE_DOWNLOAD_URL }}|${{ github.event.release.html_url }}" > release_line.txt echo "DEV|${{ github.event.release.tag_name }}|${{ env.RELEASE_DOWNLOAD_URL }}|${{ github.event.release.html_url }}" > release_line.txt
- name: Append to version.txt - name: Append to versions.txt
run: | run: |
cat version.txt > temp.txt cat versions.txt > temp.txt
cat release_line.txt temp.txt > version.txt cat release_line.txt temp.txt > versions.txt
- name: Commit and push changes - name: Commit and push changes
uses: EndBug/add-and-commit@v9 uses: EndBug/add-and-commit@v9
with: with:
committer_name: GitHub Actions committer_name: GitHub Actions
committer_email: 41898282+github-actions[bot]@users.noreply.github.com committer_email: 41898282+github-actions[bot]@users.noreply.github.com
message: Update version.txt ${{ github.event.release.name }} message: Update versions.txt ${{ github.event.release.name }}
add: version.txt add: versions.txt
update_html: update_html:
name: Update html-branch name: Update html-branch