Skip to content

Commit

Permalink
ci(cleanup): small clean ups in CI (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwangggg authored Nov 20, 2023
1 parent a05ab9f commit a9cde35
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ jobs:
core_version: ${{ steps.get_core_version.outputs.core_version }}
steps:
- uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0
- id: get_core_version
run: |
echo "core_version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_OUTPUT
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/cryostat-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ jobs:
cryostat-test:
runs-on: ubuntu-latest
needs: [checkout-branch]
permissions:
statuses: write
pull-requests: write
env:
build_arch: 'amd64'
steps:
Expand Down Expand Up @@ -127,7 +130,6 @@ jobs:
repo: context.repo.repo,
body: body
})
- name: Leave a comment on pull failure
uses: actions/github-script@v6
if: always() && steps.pull-image.outcome != 'success'
Expand All @@ -140,11 +142,10 @@ jobs:
repo: context.repo.repo,
body: body
})
- name: Set latest commit status as ${{ job.status }}
uses: myrotvorets/set-commit-status-action@master
if: always()
with:
sha: ${{ needs.checkout-branch.outputs.PR_head_sha}}
sha: ${{ needs.checkout-branch.outputs.PR_head_sha }}
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
File renamed without changes.
3 changes: 3 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ on:
jobs:
update_release_draft:
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
# Drafts your next Release notes as Pull Requests are merged into "main"
- uses: release-drafter/release-drafter@v5
Expand Down

0 comments on commit a9cde35

Please sign in to comment.