diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d139d41..dc17b35 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,6 +1,11 @@ name: Rust on: + workflow_call: + inputs: + upload-tag: + type: string + default: "nightly" push: branches: [ "main", "main-dev" ] pull_request: @@ -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 @@ -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