Skip to content

Commit

Permalink
chore: prepare base for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
galargh committed Jun 26, 2024
1 parent 253ab88 commit 497dfec
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ name: Release
on:
push:
branches:
- release/v*
- releases
- ipdx/release-automation-release-v*
- ipdx/release-automation-releases
paths:
- build/version.go
pull_request:
branches:
- release/v*
- releases
- ipdx/release-automation-release-v*
- ipdx/release-automation-releases
paths:
- build/version.go

Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
go run cmd/release/main.go --json list-projects | jq -r '.msg' |
jq 'map(select(.version | endswith("-dev") | not))' |
jq 'map(select(.released | not))' |
jq 'map(select(.prerelease != (env.TARGET_REF == "refs/heads/releases")))' |
jq 'map(select(.prerelease != (env.TARGET_REF == "refs/heads/ipdx/release-automation-releases")))' |
jq -c '.' | xargs -I {} -0 echo "projects={}" |
tee -a $GITHUB_OUTPUT
build:
Expand Down Expand Up @@ -148,10 +148,10 @@ jobs:
with:
name: kubo
version: v0.16.0
- if: github.event_name != 'pull_request'
uses: mikefarah/yq@f15500b20a1c991c8729870ba60a4dc3524b6a94 # v4.44.2
with:
cmd: yq -i '.release.draft = false' '.goreleaser.yaml'
# - if: github.event_name != 'pull_request'
# uses: mikefarah/yq@f15500b20a1c991c8729870ba60a4dc3524b6a94 # v4.44.2
# with:
# cmd: yq -i '.release.draft = false' '.goreleaser.yaml'
- if: matrix.project == 'node'
uses: mikefarah/yq@f15500b20a1c991c8729870ba60a4dc3524b6a94 # v4.44.2
with:
Expand All @@ -172,7 +172,7 @@ jobs:
TAG: ${{ fromJSON(steps.project.outputs.config).tag }}
VERSION: ${{ fromJSON(steps.project.outputs.config).version }}
IS_LATEST: ${{ fromJSON(steps.project.outputs.config).latest }}
IS_DRAFT: ${{ github.event_name == 'pull_request' }}
IS_DRAFT: true # ${{ github.event_name == 'pull_request' }}
IS_PRERELEASE: ${{ fromJSON(steps.project.outputs.config).prerelease }}
TARGET_COMMITISH: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || github.sha }}
HEADER: '' # TODO(p3): Extract release notes from CHANGELOG.md
Expand Down

0 comments on commit 497dfec

Please sign in to comment.