Skip to content

Commit 835a645

Browse files
authored
Critical issue fix
- Incorrect method of running scripts
1 parent 9edf07a commit 835a645

1 file changed

Lines changed: 6 additions & 12 deletions

File tree

action.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,10 @@ runs:
1111
using: 'composite'
1212
steps:
1313

14-
- name: Checkout main repository on which action will run
15-
uses: actions/checkout@v3
16-
with:
17-
fetch-depth: 0
18-
19-
- name: Checkout action repository
20-
uses: actions/checkout@v3
21-
with:
22-
repository: sayyid5416/major-tags
23-
path: major-tags
24-
2514
- name: Data collection & Checks
2615
id: data
2716
shell: bash
28-
run: python "major-tags/src/script.py"
17+
run: python "${{ github.action_path }}/src/script.py"
2918

3019
- name: Show tags
3120
shell: bash
@@ -34,6 +23,11 @@ runs:
3423
echo "- Current version tag: ${{ steps.data.outputs.REF_NAME }}"
3524
echo "- Major version tag: ${{ steps.data.outputs.MAJOR_VER }}"
3625
26+
- name: Checkout main repository on which action will run
27+
uses: actions/checkout@v3
28+
with:
29+
fetch-depth: 0
30+
3731
- name: Update the ${{ steps.data.outputs.MAJOR_VER }} tag
3832
id: update
3933
shell: bash

0 commit comments

Comments
 (0)