Skip to content

Commit

Permalink
Updated to new state variable
Browse files Browse the repository at this point in the history
  • Loading branch information
tmahmood authored Jul 25, 2024
1 parent 09c345c commit 3854161
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Rust

on:
workflow_call:
inputs:
upload-tag:
type: string
default: "nightly"
push:
branches: [ "main", "main-dev" ]
pull_request:
Expand All @@ -15,7 +20,7 @@ jobs:
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
run: echo "BUILD_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- name: Checkout
uses: actions/checkout@v4
- name: Tools
Expand All @@ -33,8 +38,8 @@ jobs:
tar czf tw-web-$RELEASE_NAME.tar.gz dist taskwarrior-web
- name: Release
env:
TAG_NAME: nightly-tag-${{ steps.date.outputs.date }}
RELEASE_NAME: latest-release-${{ steps.date.outputs.date }}
TAG_NAME: latest-tag-$BUILD_DATE
RELEASE_NAME: latest-release-$BUILD_DATE
uses: softprops/action-gh-release@v2
with:
prerelease: true
Expand Down

0 comments on commit 3854161

Please sign in to comment.