Skip to content

Commit

Permalink
WIP: trigger weirdness
Browse files Browse the repository at this point in the history
Signed-off-by: Leandro Lucarella <[email protected]>
  • Loading branch information
llucax committed Apr 27, 2023
1 parent 0d4f1c5 commit 3582178
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,15 @@ jobs:
if-no-files-found: error

test-generate-docs:
if: github.event_name != 'push'
# This could be github.event_name != 'push', but that's not being triggered
# for merge_group for some reason
if: github.event_name == 'pull_request' || github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-20.04
steps:
- name: DEBUG INFO
env:
GITHUB_EVENT_NAME: ${{ github.event_name }}
run: echo $GITHUB_EVENT_NAME
- name: Fetch sources
uses: actions/checkout@v3

Expand Down Expand Up @@ -103,7 +109,8 @@ jobs:

publish-docs:
needs: ["test", "build-dist"]
if: github.event_name == 'push'
# We shouldn't need the reference name here, but `merge_group` is being executed as if it was `push`
if: github.event_name == 'push' && (github.ref == 'refs/heads/v0.x.x' || startsWith(github.ref, 'refs/tags/'))
runs-on: ubuntu-20.04
permissions:
contents: write
Expand Down Expand Up @@ -180,7 +187,7 @@ jobs:
create-github-release:
needs: ["publish-docs"]
# Create a release only on tags creation
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
permissions:
# We need write permissions on contents to create GitHub releases and on
# discussions to create the release announcement in the discussion forums
Expand Down

0 comments on commit 3582178

Please sign in to comment.