From c1d119396afb81f5becf770d4fbb141bc7dca177 Mon Sep 17 00:00:00 2001 From: Ben Martin Date: Mon, 12 May 2025 09:15:22 +0100 Subject: [PATCH] chore(workflows): inline github script action --- .forgejo/workflows/build-and-publish.yml | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/.forgejo/workflows/build-and-publish.yml b/.forgejo/workflows/build-and-publish.yml index 2d95eb0..b364a3b 100644 --- a/.forgejo/workflows/build-and-publish.yml +++ b/.forgejo/workflows/build-and-publish.yml @@ -11,9 +11,6 @@ on: jobs: setup: runs-on: ubuntu-latest - outputs: - branch: ${{ steps.get-git-context.outputs.branch }} - commit: ${{ steps.get-git-context.outputs.commit }} steps: - name: Checkout code uses: actions/checkout@v4 @@ -24,16 +21,6 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Get Git Context - id: get-git-context - uses: actions/github-script@v6 - with: - script: | - const branch = github.ref.split('/').pop(); - const commit = github.sha; - core.setOutput('branch', branch); - core.setOutput('commit', commit); - build: needs: setup runs-on: ubuntu-latest @@ -53,5 +40,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - git.brmartin.co.uk/${{ matrix.image-name }}:${{ needs.setup.outputs.branch }} - git.brmartin.co.uk/${{ matrix.image-name }}:${{ needs.setup.outputs.commit }} + git.brmartin.co.uk/${{ matrix.image-name }}:${{ github.ref_name }} + git.brmartin.co.uk/${{ matrix.image-name }}:${{ github.sha }}