resync code with k3s-package #34
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
name: on-commit | |
on: | |
workflow_dispatch: | |
push: | |
jobs: | |
build: | |
name: "Test dev and final release creation" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
id: checkout_repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
path: ./create-bosh-release-action | |
- name: Checkout repository test repo | |
id: checkout_test_repo | |
uses: actions/checkout@v4 | |
with: | |
repository: 'orange-cloudfoundry/create-bosh-release-action-test-boshrelease' | |
fetch-depth: 0 | |
# ref: v1.0 | |
token: ${{ secrets.CREATE_BOSH_RELEASE_ACTION_TEST_BOSHRELEASE_GIT_TOKEN }} | |
path: ./create-bosh-release-action-test-boshrelease | |
- name: Test dev release creation | |
id: test_dev_release | |
uses: ./create-bosh-release-action/ # uses: ./.github/actions/my-private-repo/my-action #https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-an-action-inside-a-different-private-repository-than-the-workflow | |
with: | |
target_branch: main | |
dir: create-bosh-release-action-test-boshrelease | |
- name: Generated test files status | |
run: | | |
ls -lrt | |
cd create-bosh-release-action-test-boshrelease | |
echo "Display create-bosh-release-action-test-boshrelease git repo status:" | |
git status | |
echo "List existing tags:" | |
git tag --list | |
#echo "Cleanup generated files" | |
#git clean -fdx | |
cd .. | |
- name: Test final release creation | |
id: test_final_release | |
uses: ./create-bosh-release-action/ # uses: ./.github/actions/my-private-repo/my-action #https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-an-action-inside-a-different-private-repository-than-the-workflow | |
with: | |
repository: orange-cloudfoundry/create-bosh-release-action-test-boshrelease | |
token: ${{ secrets.CREATE_BOSH_RELEASE_ACTION_TEST_BOSHRELEASE_GIT_TOKEN }} | |
target_branch: main | |
dir: create-bosh-release-action-test-boshrelease | |
tag_name: "0.1.0" | |
override_existing: "true" | |
debug: 1 |