Skip to content

Commit

Permalink
WIP: add release-notes action (and test it)
Browse files Browse the repository at this point in the history
XXX do not push to upstream-cc-utils (!)
  • Loading branch information
ccwienk committed Jan 10, 2025
1 parent e77fb98 commit 15c27de
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/actions/release-notes/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: release-notes
description: |
Retrieves release-notes following conventions from Gardener-Project.
runs:
using: composite
steps:
- name: install-gardener-gha-libs
uses: ./.github/actions/install-gardener-gha-libs
- name: collect-release-notes
shell: bash
run: |
echo "test.."
set -x
which python3
which python
python3 -c "import release_notes"
57 changes: 57 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Test
on:
push:

defaults:
run:
shell: bash

jobs:
test-release-notes:
runs-on: ubuntu-latest
steps:
- name: install git
run: |
if ! which git &>/dev/null; then
apt-get install git -y
fi
- uses: actions/checkout@v4
- uses: ./.github/actions/install-gardener-gha-libs
- name: try-use-release-notes
uses: ./.github/actions/release-notes
- name: inspect-filesystem
run: |
echo "test"
test:
runs-on: ubuntu-latest
steps:
- name: install git
run: |
if ! which git &>/dev/null; then
apt-get install git -y
fi
- uses: actions/checkout@v4
- uses: ./.github/actions/install-gardener-gha-libs
- name: inspect filesystem
run: |
set -xu
echo "smoketest for gha-libs"
python3 -c "import gitutil; print(gitutil.__file__)"
git config --global --add safe.directory $PWD
git config user.name 'Gardener-CICD Bot'
git config user.email '[email protected]'
echo "git-cfg"
git config -l
echo "try to fetch another repository"
git fetch https://github.com/gardener/gardener
echo "try to clone another repository"
mkdir /tmp/bla
git clone https://github.com/gardener/cc-utils /tmp/bla/cc-utils
echo "try to clone another repository from other PWD"
cd /tmp/bla
git clone https://github.com/gardener/cc-utils cc-utils2

0 comments on commit 15c27de

Please sign in to comment.