Complete the command to list all tags in the repository.
git [1]The git tag command lists all tags in the repository.
Complete the command to create a new tag named 'v1.0'.
git [1] v1.0
The git tag v1.0 command creates a new tag named 'v1.0'.
Fix the error in the command to push tags to the remote repository.
git push origin [1]The --tags option pushes all tags to the remote repository.
Fill in the blank to complete the GitHub Actions trigger for tags starting with 'v'.
on:
push:
tags:
- '[1]*'The trigger pattern 'v*' matches tags starting with 'v', commonly used for version tags.
Fill both blanks to complete the GitHub Actions job that runs only on tag pushes starting with 'v'.
jobs:
deploy:
if: startsWith(github.ref, 'refs/tags/[1][2]')
runs-on: ubuntu-latest
steps:
- name: Deploy
run: echo "Deploying version tag"The condition checks if the tag starts with 'v-' followed by any characters, matching version tags like 'v-1.0'.
