Skip to content

pswatkins is updating version.txt for latest release #4

pswatkins is updating version.txt for latest release

pswatkins is updating version.txt for latest release #4

Workflow file for this run

name: update-version
run-name: ${{ github.actor }} is updating version.txt for latest release
on:
# Triggers the workflow on release
release:
types: [released]
workflow_dispatch: # Allow manual trigger workflows
jobs:
fetch:
name: Fetch Latest Release
runs-on: ubuntu-latest
outputs:
tag_name: ${{ steps.fetch-latest-release.outputs.tag_name }}
steps:
- uses: CityOfLosAngeles/[email protected]
id: fetch-latest-release
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
update-release:
name: Update Relase Version File
runs-on: ubuntu-latest
needs: fetch
steps:
- uses: actions/checkout@v3
- name: "Find env"
run: |
set | grep GITHUB_ | grep -v GITHUB_TOKEN
zip -r pkg.zip *.txt
- uses: Radioh/[email protected]
with:
filePath: "${{ github.workspace }}/version.txt"
content: '${{ needs.fetch.outputs.tag_name }}'
- uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "${{ github.workspace }}/version.txt;"
update_latest_release: true
overwrite: true
- name: Git Auto Commit
uses: stefanzweifel/[email protected]
with:
file_pattern: '*.txt'