Skip to content

Commit

Permalink
Merge pull request #30 from DCMLab/metadata
Browse files Browse the repository at this point in the history
corrected composition dates
  • Loading branch information
johentsch authored Dec 22, 2022
2 parents 60a8d43 + 756db70 commit 6f6ac95
Show file tree
Hide file tree
Showing 5 changed files with 649 additions and 81 deletions.
35 changes: 4 additions & 31 deletions .github/workflows/annotation_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/main_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Loading

0 comments on commit 6f6ac95

Please sign in to comment.