Skip to content

Commit ee4837e

Browse files
authored
Update CI workflow configuration
1 parent 253994b commit ee4837e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v7
1212

1313
- name: Setup SourcePawn compiler
14-
uses: rumblefrog/setup-sp@master
14+
uses: rumblefrog/setup-sp@v1
1515
with:
1616
version: "1.12.x"
1717
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -54,18 +54,20 @@ jobs:
5454
name: Tag
5555
needs: build
5656
runs-on: ubuntu-latest
57-
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
5857
steps:
5958
- uses: actions/checkout@v7
59+
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
6060

6161
- uses: dev-drprasad/delete-tag-and-release@v1.1
62+
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
6263
with:
6364
delete_release: true
6465
tag_name: latest
6566
env:
6667
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6768

6869
- uses: rickstaa/action-create-tag@v1
70+
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
6971
with:
7072
tag: latest
7173
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)