Skip to content

Commit 9bf7e8c

Browse files
authored
Only run on main push and dispatch
The ref should also no longer be needed after merging pspdev/psptoolchain#185
1 parent 33d9ce9 commit 9bf7e8c

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

.github/workflows/docker.yml

+1-14
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
tags:
8-
- v*
97
repository_dispatch:
108
types: [run_build]
119

@@ -17,16 +15,6 @@ jobs:
1715
steps:
1816
- uses: actions/checkout@v3
1917

20-
- name: Extract DOCKER_TAG using tag name
21-
if: startsWith(github.ref, 'refs/tags/')
22-
run: |
23-
echo "DOCKER_TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
24-
25-
- name: Use default DOCKER_TAG
26-
if: startsWith(github.ref, 'refs/tags/') != true
27-
run: |
28-
echo "DOCKER_TAG=latest" >> $GITHUB_ENV
29-
3018
- name: Set up QEMU
3119
uses: docker/setup-qemu-action@v2
3220

@@ -43,7 +31,7 @@ jobs:
4331
- uses: docker/build-push-action@v4
4432
with:
4533
push: true
46-
tags: ghcr.io/${{ github.repository }}:${{ env.DOCKER_TAG }}
34+
tags: ghcr.io/${{ github.repository }}:latest
4735

4836
- name: Send Compile action
4937
run: |
@@ -56,4 +44,3 @@ jobs:
5644
repository: ${{ github.repository_owner }}/psptoolchain
5745
token: ${{ secrets.DISPATCH_TOKEN }}
5846
event-type: ${{ env.NEW_DISPATCH_ACTION }}
59-
client-payload: '{"ref": "${{ github.ref }}"}'

0 commit comments

Comments
 (0)