Skip to content

Commit 7ea8619

Browse files
committed
use checkout action to reset repo
1 parent 4e89327 commit 7ea8619

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/build/action.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ runs:
2828
run: |
2929
sudo apt-get install jq
3030
31-
# reset previous run: TODO: think about better solution
32-
git checkout src/plugin.json
33-
3431
VERSION=$(jq -r .info.version src/plugin.json)
3532
if [ "${{ inputs.signed }}" == "true" ]; then
3633
VERSION=$VERSION+signed
@@ -98,9 +95,6 @@ runs:
9895
shell: bash
9996
id: package-plugin
10097
run: |
101-
# clean up previous build # TODO: think about better solution
102-
rm -rf ${{ steps.metadata.outputs.plugin-id }}
103-
10498
mv dist ${{ steps.metadata.outputs.plugin-id }}
10599
zip ${{ steps.metadata.outputs.archive }} ${{ steps.metadata.outputs.plugin-id }} -r
106100
md5sum ${{ steps.metadata.outputs.archive }} > ${{ steps.metadata.outputs.archive-checksum }}

.github/workflows/ci.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,26 +36,32 @@ jobs:
3636
- name: Compatibility check
3737
run: npx @grafana/levitate@latest is-compatible --path src/module.ts --target @grafana/data,@grafana/ui,@grafana/runtime
3838

39+
- name: clean up repo
40+
uses: actions/checkout@v3
41+
3942
- name: Build frontend unsigned
4043
id: build-unsigned
4144
uses: ./.github/build/
4245
with:
4346
release: false
4447
signed: false
4548

49+
- name: Upload unsigned package
50+
uses: actions/upload-artifact@v3
51+
with:
52+
name: checkmk-datasource-unsigned
53+
path: '${{ steps.build-unsigned.outputs.plugin_path }}'
54+
55+
- name: clean up repo
56+
uses: actions/checkout@v3
57+
4658
- name: Build frontend signed
4759
id: build-signed
4860
uses: ./.github/build/
4961
with:
5062
release: false
5163
signed: true
5264

53-
- name: Upload unsigned package
54-
uses: actions/upload-artifact@v3
55-
with:
56-
name: checkmk-datasource-unsigned
57-
path: '${{ steps.build-unsigned.outputs.plugin_path }}'
58-
5965
- name: Upload signed package
6066
uses: actions/upload-artifact@v3
6167
with:

0 commit comments

Comments
 (0)