generated from DCMLab/annotation_workflow_template
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #30 from DCMLab/metadata
corrected composition dates
- Loading branch information
Showing
5 changed files
with
649 additions
and
81 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,56 +11,29 @@ jobs: | |
ms3_review: | ||
if: > | ||
github.event.head_commit.message == 'trigger_workflow' | ||
|| github.event.pull_request.title == 'PR to check for errors' | ||
|| (github.event.pusher.name != 'ms3_bot' && github.event.pusher.name != 'github-actions[bot]') | ||
|| (github.event.pusher.name != 'ms3-bot' && github.event.pusher.name != 'github-actions[bot]') | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
|
||
- name: Checkout corpus repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
token: ${{ secrets.MS3_BOT_TOKEN }} | ||
path: ${{ github.event.repository.name }} | ||
# - name: Show workspace variables | ||
# run: | | ||
# echo 'github.workspace === ${{ github.workspace }}' | ||
# ls ${{ github.workspace }} | ||
# echo "GITHUB_WORKSPACE === $GITHUB_WORKSPACE" | ||
# ls $GITHUB_WORKSPACE | ||
# echo 'runner.workspace === ${{ runner.workspace }}' | ||
# ls ${{ runner.workspace }} | ||
# echo "RUNNER_WORKSPACE === $RUNNER_WORKSPACE" | ||
# ls $RUNNER_WORKSPACE | ||
|
||
- name: Pull Request open or not? | ||
id: checkpull | ||
working-directory: ${{ github.event.repository.name }} | ||
continue-on-error: true | ||
run: | | ||
gh pr view --json state -q .[] | ||
echo ::set-output name=res::$(echo $(gh pr view --json state -q .[])) | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Run 'ms3 review' via dcml_corpus_workflow action | ||
uses: DCMLab/[email protected].4 # Uses an action in the root directory | ||
uses: DCMLab/[email protected].6 # Uses an action in the root directory | ||
id: act_docker | ||
# working-directory: ${{ github.repository.name }} | ||
# needs to become a parameter/env variable | ||
with: | ||
ms3-command: ${{ github.event_name }} | ||
env: | ||
Token: "${{ secrets.MS3_BOT_TOKEN }}" | ||
IsThereAPullRequestOpened: "${{ steps.checkpull.outputs.res }}" | ||
commitFrom: "${{ github.event.before }}" | ||
commitTo: "${{ github.event.pull_request.head.sha }}" | ||
commitFrom: "" # it start from main branch | ||
comment_msg: "${{ github.event.head_commit.message }}" | ||
pr_title: "${{ github.event.pull_request.title }}" | ||
directory: "${{ github.workspace }}" | ||
working_dir: ${{ github.event.repository.name }} | ||
|
||
- name: Cancel the run if skipped | ||
working-directory: ${{ github.event.repository.name }} | ||
if: (steps.act_docker.outputs.skipped == 'true') | ||
|
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 |
---|---|---|
|
@@ -18,18 +18,13 @@ jobs: | |
path: ${{ github.event.repository.name }} | ||
|
||
- name: Run 'ms3 review' via dcml_corpus_workflow action | ||
uses: DCMLab/[email protected].4 # Uses an action in the root directory | ||
uses: DCMLab/[email protected].6 # Uses an action in the root directory | ||
id: act_docker | ||
# working-directory: ${{ github.repository.name }} | ||
# needs to become a parameter/env variable | ||
with: | ||
ms3-command: "push_to_main" | ||
env: | ||
Token: "${{ secrets.MS3_BOT_TOKEN }}" | ||
IsThereAPullRequestOpened: "" | ||
commitFrom: "${{ github.event.before }}" | ||
commitTo: "" | ||
comment_msg: "" | ||
pr_title: "" | ||
directory: "${{ github.workspace }}" | ||
working_dir: ${{ github.event.repository.name }} |
Oops, something went wrong.