Compare commits
4 Commits
2.0.3
...
renovate/o
| Author | SHA1 | Date | |
|---|---|---|---|
| bdbec54469 | |||
|
b9f9f87068
|
|||
|
cd9815dfb3
|
|||
|
50ff19fae2
|
@@ -1,15 +1,12 @@
|
||||
---
|
||||
name: Cog release
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
workflow_call:
|
||||
# inputs:
|
||||
# check-latest-tag-only:
|
||||
# type: boolean
|
||||
# required: false
|
||||
# default: true
|
||||
inputs:
|
||||
ref:
|
||||
type: string
|
||||
required: false
|
||||
default: ""
|
||||
|
||||
jobs:
|
||||
release:
|
||||
@@ -20,6 +17,7 @@ jobs:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: ${{ inputs.ref == '' && github.sha || inputs.ref }}
|
||||
|
||||
- run: |
|
||||
git config user.name gitea-bot
|
||||
@@ -46,5 +44,5 @@ jobs:
|
||||
- name: Upload github release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
body_path: ${{ steps.changelog.outputs.stdout }}
|
||||
body: ${{ steps.changelog.outputs.stdout }}
|
||||
tag_name: ${{ steps.release.outputs.version }}
|
||||
|
||||
@@ -56,7 +56,7 @@ jobs:
|
||||
make copy-install;
|
||||
cd ${{ github.workspace }};
|
||||
rm -rf blackbox;
|
||||
- uses: opentofu/setup-opentofu@v1
|
||||
- uses: opentofu/setup-opentofu@v2
|
||||
if: ${{ steps.check.outputs.code == 2 }}
|
||||
with:
|
||||
tofu_version: ${{ inputs.tofu-version }}
|
||||
|
||||
@@ -26,7 +26,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: opentofu/setup-opentofu@v1
|
||||
- uses: opentofu/setup-opentofu@v2
|
||||
with:
|
||||
tofu_version: ${{ inputs.tofu-version }}
|
||||
cli_config_credentials_token: ${{ secrets.tf-api-token }}
|
||||
|
||||
12
.gitea/workflows/release.yml
Normal file
12
.gitea/workflows/release.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
name: Cog release
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: Create release
|
||||
runs-on: ubuntu-latest
|
||||
uses: ./.gitea/workflows/cog-release.yml
|
||||
Reference in New Issue
Block a user