File tree Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -18,31 +18,18 @@ jobs:
1818
1919 name : Build and deploy container
2020 steps :
21- - name : Check out the repository
22- uses : actions/checkout@v4
23-
2421 - name : Install git
2522 run : |
2623 apk update
2724 apk add --no-cache git
2825 git config --global --add safe.directory "$GITHUB_WORKSPACE" # Ensure the workspace is safe
29- git --version # Verify that Git is installed successfully
3026
31- - name : Verify Git repository and working directory
32- run : |
33- echo "Current directory: $(pwd)"
34- echo "Listing contents:"
35- ls -la # List contents to see if the repository exists
36- git --version # Check that git is accessible
37- git status # Verify that Git can see the repo
27+ - name : Check out the repository
28+ uses : actions/checkout@v4
3829
3930 - name : Get latest tag
4031 id : tag
4132 run : |
42- cd "$GITHUB_WORKSPACE" # Explicitly set the correct directory
43- echo "Current directory: $(pwd)" # Debug: Check if we're in the correct directory
44- ls -la # List contents again to ensure we're in the right repo
45- git status # Verify Git is working inside the container
4633 git fetch --tags
4734 if ! LATEST_TAG=$(git describe --tags --abbrev=0); then
4835 echo "::error::No tags found in repository"
You can’t perform that action at this time.
0 commit comments