This repository has been archived by the owner on Sep 3, 2024. It is now read-only.
v0.9.0 #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: J1 Integration deployment | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
j1-integration-deployment: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get integration name | |
id: get-integration-name | |
uses: actions/[email protected] | |
with: | |
script: | | |
const repositoryName = context.payload.repository.name | |
const integrationName = repositoryName.replace("graph-", "") | |
core.setOutput('integrationName', integrationName) | |
- name: Get version number | |
id: get-version-number | |
uses: actions/[email protected] | |
with: | |
script: | | |
const tagName = context.payload.release.tag_name | |
const versionNumber = tagName.replace("v", "") | |
core.setOutput('versionNumber', versionNumber) | |
- name: Bump integration deployment version | |
uses: JupiterOne/integration-github-actions/create-integration-deployment@v2 | |
with: | |
integrationName: | |
${{ steps.get-integration-name.outputs.integrationName }} | |
releaseNotes: ${{ github.event.release.body }} | |
version: ${{ steps.get-version-number.outputs.versionNumber }} | |
githubToken: ${{ secrets.AUTO_GITHUB_PAT_TOKEN }} | |
npmAuthToken: ${{ secrets.NPM_AUTH_TOKEN }} |