Compare commits
4 Commits
2.0.4
..
36bc3ae046
| Author | SHA1 | Date | |
|---|---|---|---|
| 36bc3ae046 | |||
|
371f2fa255
|
|||
|
b9f9f87068
|
|||
|
cd9815dfb3
|
@@ -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,7 +17,7 @@ jobs:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
ref: ${{ inputs.ref == '' && github.sha || inputs.ref }}
|
||||
|
||||
- run: |
|
||||
git config user.name gitea-bot
|
||||
@@ -47,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 }}
|
||||
|
||||
@@ -30,7 +30,7 @@ jobs:
|
||||
uses: actions/checkout@v6
|
||||
- name: Retrieve artifacts
|
||||
id: download
|
||||
uses: actions/download-artifact@v7
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: artifacts
|
||||
- name: Check if job errored
|
||||
|
||||
@@ -77,7 +77,7 @@ jobs:
|
||||
shell: bash
|
||||
run: printf "${{ steps.tfplan.outputs.exitcode }}" > exitcode;
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v6
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: artifacts
|
||||
path: |
|
||||
|
||||
@@ -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
|
||||
@@ -65,7 +65,7 @@ jobs:
|
||||
# Upload MegaLinter artifacts
|
||||
- name: Archive production artifacts
|
||||
if: success() || failure()
|
||||
uses: actions/upload-artifact@v6
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: MegaLinter reports
|
||||
path: |
|
||||
|
||||
@@ -25,7 +25,7 @@ jobs:
|
||||
uses: actions/checkout@v6
|
||||
- name: Retrieve artifacts
|
||||
id: download
|
||||
uses: actions/download-artifact@v7
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: artifacts
|
||||
- name: Check if job errored
|
||||
@@ -51,7 +51,7 @@ jobs:
|
||||
make copy-install;
|
||||
cd ${{ github.workspace }};
|
||||
rm -rf blackbox;
|
||||
- uses: hashicorp/setup-terraform@v3
|
||||
- uses: hashicorp/setup-terraform@v4
|
||||
if: ${{ steps.check.outputs.code == 2 }}
|
||||
with:
|
||||
terraform_version: 1.7.5
|
||||
|
||||
@@ -21,7 +21,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: hashicorp/setup-terraform@v3
|
||||
- uses: hashicorp/setup-terraform@v4
|
||||
with:
|
||||
terraform_version: 1.7.5
|
||||
cli_config_credentials_token: ${{ secrets.tf-api-token }}
|
||||
@@ -72,7 +72,7 @@ jobs:
|
||||
shell: bash
|
||||
run: printf "${{ steps.tfplan.outputs.exitcode }}" > exitcode;
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v6
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: artifacts
|
||||
path: |
|
||||
|
||||
Reference in New Issue
Block a user