Skip to content

Commit 232f57e

Browse files
committed
ci: refactor all ${{ github.events.inputs }} into ${{ inputs }}
GitHub has unified the inputs and they are now available always under ${{ inputs }} This is easier to read and maintain. See https://github.blog/changelog/2022-06-10-github-actions-inputs-unified-across-manual-and-reusable-workflows/
1 parent fe2fab0 commit 232f57e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/publish.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ jobs:
3737
- name: Get next version
3838
id: get_next_version
3939
run: |
40-
if [ -n "${{ github.event.inputs.version }}" ]; then
41-
echo "next_version=${{ github.event.inputs.version }}" >> $GITHUB_ENV
42-
echo "Version provided: ${{ github.event.inputs.version }}"
40+
if [ -n "${{ inputs.version }}" ]; then
41+
echo "next_version=${{ inputs.version }}" >> $GITHUB_ENV
42+
echo "Version provided: ${{ inputs.version }}"
4343
else
4444
current_version=$(cat VERSION)
4545
echo "Current version: $current_version"
@@ -72,7 +72,7 @@ jobs:
7272
java -jar openapi-generator-cli.jar generate -c openapitools.json
7373
7474
- name: Update repository with new version
75-
if: github.event.inputs.version == ''
75+
if: inputs.version == ''
7676
run: |
7777
git config --global user.name "github-actions"
7878
git config --global user.email "[email protected]"
@@ -111,7 +111,7 @@ jobs:
111111

112112
- name: Create Release
113113
id: create_release
114-
if: github.event.inputs.version == ''
114+
if: inputs.version == ''
115115
env:
116116
GITHUB_TOKEN: ${{ github.token }}
117117
run: >-

0 commit comments

Comments
 (0)