Update CI (#760)

* Force machine-id when running tests

* Use the source branch instead of master when dispatching to packaging repo
This commit is contained in:
blotus 2021-04-20 11:07:13 +02:00 committed by GitHub
parent 7e9ce901a4
commit 430b4bafbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -28,6 +28,10 @@ jobs:
excludes: draft
- name: Build release
run: BUILD_VERSION=${{ steps.keydb.outputs.release }} make release
- name: "Force machineid"
run: |
sudo chmod +w /etc/machine-id
echo githubciXXXXXXXXXXXXXXXXXXXXXXXX | sudo tee /etc/machine-id
- name: Install release
run: |
cd crowdsec-${{ steps.keydb.outputs.release }}

View file

@ -17,4 +17,4 @@ jobs:
token: ${{ secrets.DISPATCH_TOKEN }}
event-type: test_package_from_master
repository: crowdsecurity/packaging
client-payload: '{"branch": "master"}'
client-payload: '{"branch": "${{ github.ref }}"}'