Skip to content

Commit 7f738f0

Browse files
committed
try one more time
1 parent c597504 commit 7f738f0

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.github/workflows/build-and-release.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ jobs:
8686
owner: ${{ github.repository_owner }}
8787
repositories: "backup-utils,backup-utils-private"
8888
- name: Checkout backup-utils
89-
# if: github.event.inputs.branch_ref_or_commit == ''
89+
if: github.event.inputs.branch_ref_or_commit == ''
9090
uses: actions/checkout@v4
9191
with:
9292
token: ${{ steps.app-token.outputs.token }}
9393
repository: github/backup-utils
9494
# ref: ${{ github.event.inputs.branch_ref_or_commit }}}
9595
- name: Create empty commit
96-
# if: github.event.inputs.branch_ref_or_commit == ''
96+
if: github.event.inputs.branch_ref_or_commit == ''
9797
uses: stefanzweifel/git-auto-commit-action@v4
9898
id: empty-commit
9999
with:
@@ -104,16 +104,16 @@ jobs:
104104
commit_options: "--allow-empty"
105105
push_options: "--force"
106106
skip_dirty_check: true
107-
# - name: Resolve release commit
108-
# id: resolve-release-commit
109-
# run: |
110-
# if [[ -z "${{ github.event.inputs.branch_ref_or_commit }}" ]]; then
111-
# echo "Using empty commit sha for release commit"
112-
# echo "release-ref-or-commit=\"${{ steps.empty-commit.outputs.commit_hash }}\"" >> "$GITHUB_OUTPUT"
113-
# else
114-
# echo "Using provided commit sha for release commit"
115-
# echo "release-ref-or-commit=\"${{ github.event.inputs.branch_ref_or_commit }}\"" >> "$GITHUB_OUTPUT"
116-
# fi
107+
- name: Resolve release commit
108+
id: resolve-release-commit
109+
run: |
110+
if [[ -z "${{ github.event.inputs.branch_ref_or_commit }}" ]]; then
111+
echo "Using empty commit sha for release commit"
112+
echo "release-ref-or-commit=\"${{ steps.empty-commit.outputs.commit_hash }}\"" >> "$GITHUB_OUTPUT"
113+
else
114+
echo "Using provided commit sha for release commit"
115+
echo "release-ref-or-commit=\"${{ github.event.inputs.branch_ref_or_commit }}\"" >> "$GITHUB_OUTPUT"
116+
fi
117117
- name: Checkout backup-utils-private for release notes
118118
uses: actions/checkout@v4
119119
with:
@@ -139,7 +139,7 @@ jobs:
139139
# github-backup-utils-v${{ github.event.inputs.version }}.tar.gz, \
140140
# github-backup-utils_${{ github.event.inputs.version }}_all.deb
141141
tag: v${{ github.event.inputs.version }}
142-
commit: ${{ steps.empty-commit.outputs.commit_hash }}
142+
commit: ${{ steps.resolve-release-commit.outputs.release-ref-or-commit }}
143143
bodyFile: release-notes/${{ github.event.inputs.version }}.md
144144
draft: ${{ github.event.inputs.draft }}
145145
allowUpdates: true

0 commit comments

Comments
 (0)