-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcommit-queue.yml
37 lines (34 loc) · 1.14 KB
/
commit-queue.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
schedule:
- cron: "* * * * *"
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
commitQueue:
runs-on: ubuntu-latest
steps:
- uses: octokit/graphql-action@v2.x
id: get_latest_release
with:
query: |
query release($owner:String!,$repo:String!) {
repository(owner:$owner, name:$repo) {
releases(first:1) {
nodes {
name
createdAt
tagName
description
}
}
}
}
owner: ${{ github.event.repository.owner.name }}
repo: ${{ github.event.repository.name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: "echo 'latest release: ${{ steps.get_latest_release.outputs.data }}'"