From 9fca4c5c489583f1d2d01840d7db4a329e909a0c Mon Sep 17 00:00:00 2001 From: Wouter Wijsman Date: Sun, 9 Jun 2024 16:41:14 +0200 Subject: [PATCH] Remove unused code in workflow This makes it a lot more readable I would say, but does not change the functionality. This part of the code would only trigger for the master branch anyway. --- .github/workflows/build.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 04c79f3..001b609 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -105,15 +105,6 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Extract DOCKER_TAG using tag name - if: startsWith(github.ref, 'refs/tags/') - run: | - echo "DOCKER_TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV - - - name: Use default DOCKER_TAG - if: startsWith(github.ref, 'refs/tags/') != true - run: | - echo "DOCKER_TAG=latest" >> $GITHUB_ENV - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -130,9 +121,9 @@ jobs: - uses: docker/build-push-action@v5 with: push: true - tags: ghcr.io/${{ github.repository }}:${{ env.DOCKER_TAG }} + tags: ghcr.io/${{ github.repository }}:latest build-args: | - BASE_DOCKER_IMAGE=ghcr.io/${{ github.repository_owner }}/pspsdk:${{ env.DOCKER_TAG }} + BASE_DOCKER_IMAGE=ghcr.io/${{ github.repository_owner }}/pspsdk:latest - name: Send Compile action run: | @@ -144,4 +135,4 @@ jobs: repository: ${{ github.repository_owner }}/pspdev token: ${{ secrets.DISPATCH_TOKEN }} event-type: ${{ env.NEW_DISPATCH_ACTION }} - client-payload: '{"ref": "${{ github.ref }}"}' + client-payload: '{"ref": "refs/heads/master"}'