Skip to content

Merge pull request #4 from redhat-actions/install_latest_podman_on_wi… #3

Merge pull request #4 from redhat-actions/install_latest_podman_on_wi…

Merge pull request #4 from redhat-actions/install_latest_podman_on_wi… #3

# /**********************************************************************
# * Copyright (C) 2025 Red Hat, Inc.
# *
# * Licensed under the Apache License, Version 2.0 (the "License");
# * you may not use this file except in compliance with the License.
# * You may obtain a copy of the License at
# *
# * http://www.apache.org/licenses/LICENSE-2.0
# *
# * Unless required by applicable law or agreed to in writing, software
# * distributed under the License is distributed on an "AS IS" BASIS,
# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# * See the License for the specific language governing permissions and
# * limitations under the License.
# *
# * SPDX-License-Identifier: Apache-2.0
# ***********************************************************************/
name: Create Release on Push
on:
push:
branches:
- main
jobs:
create_release:
runs-on: ubuntu-24.04
permissions:
contents: write # Grant permission to create releases/tags
steps:
# This new step manually calculates the short SHA
- name: Get short SHA
id: get_sha
run: echo "sha=$(echo ${{ github.sha }} | cut -c1-7)" >> $GITHUB_OUTPUT
# This step now uses the output from the step above
- name: Create Release
uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: commit-${{ steps.get_sha.outputs.sha }}
release_name: Release ${{ steps.get_sha.outputs.sha }}
body: |
Automatic release created from commit ${{ github.sha }} on the main branch.
draft: false
prerelease: true