forked from adobecom/milo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from mokimo/stage
[Release] Stage to Main
- Loading branch information
Showing
2 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,13 +28,17 @@ jobs: | |
const event = JSON.parse(fs.readFileSync(process.env.GITHUB_EVENT_PATH, 'utf8')); | ||
if (process.env.GITHUB_EVENT_NAME === 'pull_request') { | ||
const { label: { name } } = event; | ||
return name === 'Ready for Stage'; | ||
if (name !== 'Ready for Stage') { | ||
console.log('Label is not "Ready for Stage", stopping workflow...'); | ||
return false; | ||
} | ||
} | ||
return true; | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Merge to stage or queue to merge | ||
if: steps.check_label.outputs.result == 'true' | ||
uses: actions/[email protected] | ||
with: | ||
script: | | ||
|