Skip to content

Commit caa8910

Browse files
committed
Merge branch 'ruby_core_request_change' of https://github.com/contentstack/contentstack-ruby into ruby_core_request_change
2 parents 59c2023 + d66ffa6 commit caa8910

4 files changed

Lines changed: 65 additions & 3 deletions

File tree

.github/workflows/jira.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Create JIRA ISSUE
2+
on:
3+
pull_request:
4+
types: [opened]
5+
jobs:
6+
security:
7+
if: ${{ github.actor == 'dependabot[bot]' || github.actor == 'snyk-bot' || contains(github.event.pull_request.head.ref, 'snyk-fix-') || contains(github.event.pull_request.head.ref, 'snyk-upgrade-')}}
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Login into JIRA
12+
uses: atlassian/gajira-login@master
13+
env:
14+
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
15+
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
16+
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
17+
- name: Create a JIRA Issue
18+
id: create
19+
uses: atlassian/gajira-create@master
20+
with:
21+
project: ${{ secrets.JIRA_PROJECT }}
22+
issuetype: ${{ secrets.JIRA_ISSUE_TYPE }}
23+
summary: |
24+
${{ github.event.pull_request.title }}
25+
description: |
26+
PR: ${{ github.event.pull_request.html_url }}
27+
28+
fields: "${{ secrets.JIRA_FIELDS }}"

.github/workflows/release-gem.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Ruby Gem
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
name: Build + Publish
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
packages: write
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Set up Ruby 2.6
18+
uses: actions/setup-ruby@v1
19+
with:
20+
ruby-version: 2.6.x
21+
22+
- name: Publish to RubyGems
23+
run: |
24+
mkdir -p $HOME/.gem
25+
touch $HOME/.gem/credentials
26+
chmod 0600 $HOME/.gem/credentials
27+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
28+
gem build *.gemspec
29+
gem push *.gem
30+
env:
31+
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"

.github/workflows/sca-scan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ jobs:
88
steps:
99
- uses: actions/checkout@master
1010
- name: Run Snyk to check for vulnerabilities
11-
uses: snyk/actions/node@master
11+
uses: snyk/actions/ruby@master
1212
env:
13-
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
13+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

Gemfile.lock

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ GEM
3232
nokogiri (1.13.9)
3333
mini_portile2 (~> 2.8.0)
3434
racc (~> 1.4)
35+
nokogiri (1.13.9-x64-mingw32)
36+
racc (~> 1.4)
3537
public_suffix (5.0.0)
3638
racc (1.6.0)
3739
rexml (3.2.5)
@@ -67,6 +69,7 @@ GEM
6769

6870
PLATFORMS
6971
ruby
72+
x64-mingw32
7073

7174
DEPENDENCIES
7275
contentstack!
@@ -76,4 +79,4 @@ DEPENDENCIES
7679
yard (~> 0.9.26)
7780

7881
BUNDLED WITH
79-
2.2.7
82+
2.3.13

0 commit comments

Comments
 (0)