10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76251df commit 6772aa0Copy full SHA for 6772aa0
.github/workflows/publish-go-tester-task.yml
@@ -35,14 +35,19 @@ jobs:
35
outputs:
36
result: ${{ steps.determination.outputs.result }}
37
steps:
38
+ - name: Checkout repository
39
+ uses: actions/checkout@v3
40
+ with:
41
+ fetch-depth: 0
42
+
43
- name: Determine if the rest of the workflow should run
44
id: determination
45
run: |
- RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x"
46
+ TAG="$(git tag --points-at=HEAD 2> /dev/null | head -n1)"
47
# The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead.
48
if [[ \
- "${{ github.event_name }}" != "create" || \
- "${{ github.ref }}" =~ $RELEASE_BRANCH_REGEX \
49
+ "${{ github.event_name }}" != "create" && \
50
+ "$TAG" == "" \
51
]]; then
52
# Run the other jobs.
53
RESULT="true"
0 commit comments