add VVC files from Nokia based on m56817,m57436,m58142 #8
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: Move Files from Under Consideration to Published | |
on: | |
pull_request: | |
types: | |
- closed | |
branches: | |
- main | |
permissions: | |
pull-requests: write | |
contents: write | |
jobs: | |
move: | |
runs-on: ubuntu-latest | |
if: | | |
github.event.pull_request.merged == true && | |
contains(github.event.pull_request.labels.*.name, 'conformance-file') | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ssh-key: ${{ secrets.COMMIT_KEY }} | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@v45 | |
- name: Move files | |
run: | | |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do | |
if [[ $file == *"data/file_features/under_consideration/"* ]]; then | |
relative_path="${file#*data/file_features/under_consideration/}" | |
mkdir -p "data/file_features/published/$(dirname "$relative_path")" | |
mv "$file" "data/file_features/published/$relative_path" | |
fi | |
done | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
title: Publish Conformance Files of ${{ github.event.pull_request.head.ref }} | |
commit-message: Move files from under consideration to published | |
body: | | |
This PR moves the conformance files submitted in #${{ github.event.number }} from under consideration to published. | |
branch: move-files-${{ github.event.pull_request.head.ref }} | |
delete-branch: true | |
draft: always-true |