From 5c2fefee0dbee95b6656e92b1cb5d3608119fccc Mon Sep 17 00:00:00 2001 From: Bruno Carlin Date: Fri, 27 Dec 2024 01:01:34 +0100 Subject: [PATCH] misc fixes --- .forgejo/workflows/build.yaml | 1 - .forgejo/workflows/move-action-tag.yaml | 18 ++++++++++++++++++ action.yaml | 3 ++- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 .forgejo/workflows/move-action-tag.yaml diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index e572130..3345e4c 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -31,7 +31,6 @@ jobs: echo Create a tag git tag "$VERSION" - git tag -f v0 git push --tags --force echo Create a release diff --git a/.forgejo/workflows/move-action-tag.yaml b/.forgejo/workflows/move-action-tag.yaml new file mode 100644 index 0000000..dfb08ca --- /dev/null +++ b/.forgejo/workflows/move-action-tag.yaml @@ -0,0 +1,18 @@ +on: + push: + branches: + - main + paths: + - 'src/*.v' + - action.yml +jobs: + build: + name: Move action tag + runs-on: docker + steps: + - uses: actions/checkout@v4 + - name: Upload binary as generic package and create a release + run: | + set -e + git tag -f v0 + git push --tags --force diff --git a/action.yaml b/action.yaml index 44622c8..2ee12e7 100644 --- a/action.yaml +++ b/action.yaml @@ -27,11 +27,12 @@ runs: - name: Download the browser working-directory: ${{ github.action_path }} run: | + set -x INSTALL_PATH=${INSTALL_PATH:-/opt/${TARGET%%:*}} ./setup-browser install \ -cache-path cache \ -install-to "$INSTALL_PATH" \ - ${{ inputs.target }} + "${TARGET}" echo "$(dirname "$INSTALL_PATH")" >> "$GITHUB_PATH" shell: bash env: