@@ -86,14 +86,14 @@ jobs:
86
86
owner : ${{ github.repository_owner }}
87
87
repositories : " backup-utils,backup-utils-private"
88
88
- name : Checkout backup-utils
89
- # if: github.event.inputs.branch_ref_or_commit == ''
89
+ if : github.event.inputs.branch_ref_or_commit == ''
90
90
uses : actions/checkout@v4
91
91
with :
92
92
token : ${{ steps.app-token.outputs.token }}
93
93
repository : github/backup-utils
94
94
# ref: ${{ github.event.inputs.branch_ref_or_commit }}}
95
95
- name : Create empty commit
96
- # if: github.event.inputs.branch_ref_or_commit == ''
96
+ if : github.event.inputs.branch_ref_or_commit == ''
97
97
uses : stefanzweifel/git-auto-commit-action@v4
98
98
id : empty-commit
99
99
with :
@@ -104,16 +104,16 @@ jobs:
104
104
commit_options : " --allow-empty"
105
105
push_options : " --force"
106
106
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
117
117
- name : Checkout backup-utils-private for release notes
118
118
uses : actions/checkout@v4
119
119
with :
@@ -139,7 +139,7 @@ jobs:
139
139
# github-backup-utils-v${{ github.event.inputs.version }}.tar.gz, \
140
140
# github-backup-utils_${{ github.event.inputs.version }}_all.deb
141
141
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 }}
143
143
bodyFile : release-notes/${{ github.event.inputs.version }}.md
144
144
draft : ${{ github.event.inputs.draft }}
145
145
allowUpdates : true
0 commit comments