Skip to content

Commit

Permalink
Customizing workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
thoraj committed Feb 20, 2024
1 parent 98e7257 commit 9d7a33d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/verji-release-drafter-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release Drafter
name: Release Drafter Workflow
on:
workflow_call:
inputs:
Expand All @@ -14,7 +14,7 @@ jobs:
- name: 🧮 Checkout code
uses: actions/checkout@v4
with:
ref: staging
ref: verji-staging
fetch-depth: 0

- uses: actions/setup-node@v4
Expand All @@ -35,7 +35,7 @@ jobs:
- name: Get actions scripts
uses: actions/checkout@v4
with:
repository: matrix-org/matrix-js-sdk
repository: verji/matrix-js-sdk
persist-credentials: false
path: .action-repo
sparse-checkout: |
Expand All @@ -61,10 +61,10 @@ jobs:
if (DEPENDENCY.includes("/")) {
deps.push(DEPENDENCY.replace("$VERSION", VERSION))
} else {
const fromVersion = JSON.parse((await github.request(`https://raw.githubusercontent.com/${owner}/${repo}/master/package.json`)).data).dependencies[DEPENDENCY];
const fromVersion = JSON.parse((await github.request(`https://raw.githubusercontent.com/${owner}/${repo}/verji-master/package.json`)).data).dependencies[DEPENDENCY];
const toVersion = require("./package.json").dependencies[DEPENDENCY];
if (toVersion.endsWith("#develop")) {
if (toVersion.endsWith("#verji-develop")) {
core.warning(`${DEPENDENCY} will be kept at ${fromVersion}`, { title: "Develop dependency found" });
} else {
deps.push([DEPENDENCY, fromVersion, toVersion]);
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verji-release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ on:
concurrency: ${{ github.workflow }}
jobs:
draft:
uses: verji/matrix-js-sdk/.github/workflows/verji-release-drafter-workflow.yml@verji-develop
uses: verji/matrix-js-sdk/.github/workflows/release-drafter-workflow.yml@verji-develop

0 comments on commit 9d7a33d

Please sign in to comment.