Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: new ci draft release #905

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
2e08aae
resssuable workflow
Jan 6, 2024
8ba71d9
fg
Jan 6, 2024
500314c
addded @main
Jan 6, 2024
3cc8896
ddfsd
Jan 6, 2024
65eafc0
saddas
Jan 6, 2024
3b0f47d
asopjl
Jan 6, 2024
d493b4f
xdfd
Jan 6, 2024
c252cf8
ttest
Jan 6, 2024
5d647f7
badd test
Jan 6, 2024
1d44ab8
hello
Jan 6, 2024
6f8aeda
linting
Jan 6, 2024
9d72053
Merge pull request #80 from alankritdabral/reuse
alankritdabral Jan 6, 2024
807398d
text
Jan 6, 2024
14a716a
asddd
Jan 6, 2024
cb029bc
Revert "feat: reusee workflow"
alankritdabral Jan 6, 2024
9179f5f
Merge pull request #82 from alankritdabral/revert-80-reuse
alankritdabral Jan 6, 2024
4ff96ca
Merge branch 'main' into reuse
alankritdabral Jan 6, 2024
ad13fb3
lets see
Jan 6, 2024
9af3fc8
helo
Jan 6, 2024
945eeb0
Merge pull request #81 from alankritdabral/reuse
alankritdabral Jan 6, 2024
ed4bf3c
df
Jan 6, 2024
110d025
k
Jan 6, 2024
39a63e3
maybe
Jan 6, 2024
0d0a15b
klcxzjfnlkmnxklmn
Jan 6, 2024
0e6300a
painkiller
Jan 6, 2024
2607206
ioashnkl
Jan 6, 2024
400e76d
asiodnol
Jan 6, 2024
64bd825
Merge pull request #83 from alankritdabral/reuse
alankritdabral Jan 6, 2024
7bf430d
new ci draft release
Jan 8, 2024
3c9063a
run ci.yml on pull-request
Jan 8, 2024
c86139c
fixes
Jan 8, 2024
6f344b8
removed pull-request-traget in ci.yml
Jan 8, 2024
5320b11
ignore cache_benchmarks for docs
Jan 8, 2024
9ca1854
testing cache_benchmarks
Jan 8, 2024
38a7f82
ready for review
Jan 8, 2024
67f2b64
Delete .github/workflows/draft_release.yml
alankritdabral Jan 8, 2024
69e89b3
Merge branch 'main' into chore/new-ci-for-draft-release
alankritdabral Jan 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
branches:
- main
pull_request_target:
paths-ignore: ["docs/**", "**.md"]
types: [opened, synchronize, labeled]
branches:
- main
Expand Down Expand Up @@ -142,7 +141,7 @@ jobs:

Cache_Benchmarks:
name: Micro Benchmarks
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main' && !contains(github.event_path, 'docs/') && !endswith(github.event_path, '.md')
permissions:
pull-requests: write
contents: write
Expand Down Expand Up @@ -212,3 +211,9 @@ jobs:

- name: Check Degradation
run: ./scripts/criterion_compare.rs benches/main_benchmarks.json benches/benchmarks.json check

draft_release:
name: Draft Release
if: github.event_name == 'pull_request_target'
uses: ./.github/workflows/draft-release.yml
secrets: inherit
30 changes: 3 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ on:
pull_request:
branches: [main]
types: [opened, reopened, synchronize]
pull_request_target:
types: [opened, reopened, synchronize]
release:
types: [published]
permissions:
Expand Down Expand Up @@ -96,31 +94,9 @@ jobs:

draft_release:
name: Draft Release
if: (github.event_name == 'pull_request_target') || (github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'release' && github.event.action == 'published')
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout Current Branch (Fast)
uses: actions/checkout@v4

- id: create_release
uses: release-drafter/release-drafter@v5
if: (github.event_name == 'pull_request_target') || (github.event_name == 'push' && github.ref == 'refs/heads/main')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
config-name: release-drafter.yml

- name: Set Output for Later Jobs
id: set_output
run: |
echo "create_release_name=${{ steps.create_release.outputs.name }}" >> $GITHUB_OUTPUT
echo "create_release_id=${{ steps.create_release.outputs.id }}" >> $GITHUB_OUTPUT
outputs:
create_release_name: ${{ steps.set_output.outputs.create_release_name }}
create_release_id: ${{ steps.set_output.outputs.create_release_id }}
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'release' && github.event.action == 'published')
uses: ./.github/workflows/draft-release.yml
secrets: inherit

release:
name: Release
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Draft Release

on:
workflow_call:
inputs:
draft:
required: true
type: boolean
outputs:
create_release_name:
description: "Release Name"
value: ${{ steps.set_output.outputs.create_release_name }}
create_release_id:
description: "Release Id"
value: ${{ steps.set_output.outputs.create_release_id }}

jobs:
draft_release:
name: Draft Release
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout Current Branch (Fast)
uses: actions/checkout@v4

- id: create_release
uses: release-drafter/release-drafter@v5
if: (github.event_name == 'pull_request_target') || (github.event_name == 'push' && github.ref == 'refs/heads/main')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
config-name: release-drafter.yml

- name: Set Output for Later Jobs
id: set_output
run: |
echo "create_release_name=${{ steps.create_release.outputs.name }}" >> $GITHUB_OUTPUT
echo "create_release_id=${{ steps.create_release.outputs.id }}" >> $GITHUB_OUTPUT
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: check_kar

on:
pull_request:
branches: [main]
types: [opened, reopened, synchronize]
jobs:
draft_release:
name: Draft Release
uses: ./.github/workflows/job1.yml
secrets: inherit
1 change: 1 addition & 0 deletions a.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello i am asdasd rmpty.
Loading