Skip to content

chore(main): release 1.0.1 #4

chore(main): release 1.0.1

chore(main): release 1.0.1 #4

Workflow file for this run

#
# Copyright 2024 tosit.io
#
# 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.
#
name: release-please
on:
pull_request:
types:
- closed
branches:
- main
permissions:
contents: write
pull-requests: write
# https://docs.github.com/en/actions/using-jobs/using-concurrency
concurrency:
# Only cancel in-progress jobs or runs for the current workflow - matches against branch & tags
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release-please.outputs.release_created }}
tag_name: ${{ steps.release-please.outputs.tag_name }}
# Skip the release process in the fork
# The pull request should come from the same repo (github_token from the fork does not have write permissions)
if: github.repository_owner == 'OKDP' && github.event.pull_request.merged == true && github.event.pull_request.head.repo.full_name == github.repository
steps:
- uses: google-github-actions/release-please-action@v4
id: release-please
publish:
runs-on: ubuntu-latest
needs: [release-please]
if: needs.release-please.outputs.release_created == 'true'
permissions:
contents: write
actions: write
packages: write
steps:
- name: "Publish images to official registry"
env:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ github.token }}
GH_DEBUG: api
run: |
gh workflow run publish.yml
shell: bash