-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: add release-notes action (and test it)
XXX do not push to upstream-cc-utils (!)
- Loading branch information
Showing
2 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |