Skip to content

Commit

Permalink
ci: change how publish checks out refs (#33)
Browse files Browse the repository at this point in the history
* build: another publish take

* build: formatting consistency
  • Loading branch information
xenoterracide authored Oct 18, 2024
1 parent 4f9c77e commit 0388bbf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: build
on: [push, workflow_call]
jobs:
build:
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/gh-publish.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: publish-to-github-packages
on:
workflow_run:
workflows: ["Build"]
types:
- completed
branches:
- main
workflows: [build]
types: [completed]
branches: [main]
jobs:
publish:
if: github.event.workflow_run.conclusion == 'success'
Expand All @@ -19,7 +17,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_commit.id }}
ref: ${{ github.event.workflow_run.head_branch}}
- uses: actions/setup-java@v4
with:
distribution: temurin
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gp-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_commit.id }}
ref: ${{ github.event.workflow_run.head_branch }}
- uses: actions/setup-java@v4
with:
distribution: temurin
Expand Down

0 comments on commit 0388bbf

Please sign in to comment.