summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorPheenoh <pheenoh@gmail.com>2023-08-09 16:27:37 -0600
committerGitHub <noreply@github.com>2023-08-09 16:27:37 -0600
commit244892aeb849a9ad9801aa9828e6282d29df87f0 (patch)
treed0068b429e5b5ac45d2b62c8bc48509df41da204 /.github/workflows
parentbb546a286f8c6f18c5fb1da152a34a82d17dbbaa (diff)
Github Projects (#1872)
* github projects * add project prefixes
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/assign.yml26
-rw-r--r--.github/workflows/ok-check.yml32
2 files changed, 57 insertions, 1 deletions
diff --git a/.github/workflows/assign.yml b/.github/workflows/assign.yml
new file mode 100644
index 0000000000..c5461b52ab
--- /dev/null
+++ b/.github/workflows/assign.yml
@@ -0,0 +1,26 @@
+name: Assign issue to commenter
+on:
+ issue_comment:
+ types: [created]
+
+jobs:
+ assign_to_commenter:
+ permissions:
+ issues: write
+ runs-on: ubuntu-latest
+ steps:
+ - name: Assign issue to commenter
+ uses: actions/github-script@v3
+ with:
+ github-token: ${{secrets.GITHUB_TOKEN}}
+ script: |
+ const issueComment = context.payload.comment;
+ const issue = context.payload.issue;
+ if (issueComment.body === "/assign") {
+ github.issues.addAssignees({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ issue_number: issue.number,
+ assignees: [issueComment.user.login]
+ });
+ }
diff --git a/.github/workflows/ok-check.yml b/.github/workflows/ok-check.yml
index 50697c1bb5..df816ddd3f 100644
--- a/.github/workflows/ok-check.yml
+++ b/.github/workflows/ok-check.yml
@@ -31,4 +31,34 @@ jobs:
PROGRESS_API_KEY: ${{ secrets.FROGRESS_API_KEY }}
run: |
./tp progress -f JSON > progress-${{ github.run_id }}.json
- ./tp upload-progress progress-${{ github.run_id }}.json -b https://progress.deco.mp/ -p twilightprincess -v gcn_usa \ No newline at end of file
+ ./tp upload-progress progress-${{ github.run_id }}.json -b https://progress.deco.mp/ -p twilightprincess -v gcn_usa
+ - name: Get changed .c, .cpp, .inc files
+ if: github.event_name != 'pull_request'
+ id: changed-files-specific
+ uses: tj-actions/changed-files@v36
+ with:
+ files: |
+ **/*.{c,cpp,inc}
+ - name: Update Status
+ if: github.event_name != 'pull_request' && steps.changed-files-specific.outputs.any_changed == 'true'
+ run: |
+ # Install libclang-16-dev for FunctionChecker
+ wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
+ sudo add-apt-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-16 main"
+ sudo apt update
+ sudo apt install -y libclang-16-dev
+
+ FILENAMES="${{ steps.changed-files-specific.outputs.all_changed_files }}"
+ CMD="./tp github-check-update-status --personal-access-token ${{ secrets.PAT_TOKEN }} --debug"
+
+ # If .inc files are found, assume it's for d_a_alink.cpp for now.
+ # We can come up something better here later if needed.
+ if echo "$FILENAMES" | grep -q ".inc"; then
+ CMD="$CMD --filename src/d/a/d_a_alink.cpp"
+ else
+ for FILE in $FILENAMES; do
+ CMD="$CMD --filename $FILE"
+ done
+ fi
+
+ $CMD