Skip to content
Closed

wip #1221

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: Release

on:
pull_request_target:
branches:
- test-release
types: [ closed ]
push:

permissions:
id-token: write # Required for OIDC. See https://docs.npmjs.com/trusted-publishers#step-2-configure-your-cicd-workflow
Expand All @@ -17,12 +14,13 @@ jobs:
uses: "OpenTermsArchive/engine/.github/workflows/test.yml@main"
release:
needs: [ changelog, test ]
if: github.event.pull_request.merged == true && needs.changelog.outputs.release-type != 'no-release'
if: needs.changelog.outputs.release-type != 'no-release'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: test-release
token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}

- uses: actions/setup-node@v4
Expand Down Expand Up @@ -81,6 +79,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: test-release
token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}

- name: Configure Git author
Expand Down
Loading