-
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.
feat: create GH action to automatically link issues and PRs to the pr…
…oject (#41)
- Loading branch information
Showing
2 changed files
with
43 additions
and
21 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 |
---|---|---|
|
@@ -37,24 +37,24 @@ jobs: | |
path: ./docker/image_version.txt | ||
|
||
|
||
- name: Matrix Message - Starting Build | ||
uses: s3krit/[email protected] | ||
with: | ||
room_id: ${{ secrets.MATRIX_ROOM_ID }} | ||
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }} | ||
message: "Completed FacsimiLab image build for tag ${{ steps.package.outputs.content }}" | ||
server: "matrix.drpranavmishra.com" | ||
# - name: Matrix Message - Starting Build | ||
# uses: s3krit/[email protected] | ||
# with: | ||
# room_id: ${{ secrets.MATRIX_ROOM_ID }} | ||
# access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }} | ||
# message: "Started FacsimiLab image build for tag ${{ steps.package.outputs.content }}" | ||
# server: "matrix.drpranavmishra.com" | ||
|
||
- name: Build Docker images | ||
run: bash docker/build-all.sh | ||
|
||
- name: Matrix Message - Completed Build | ||
uses: s3krit/[email protected] | ||
with: | ||
room_id: ${{ secrets.MATRIX_ROOM_ID }} | ||
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }} | ||
message: "Completed FacsimiLab image build for tag ${{ steps.package.outputs.content }}" | ||
server: "matrix.drpranavmishra.com" | ||
# - name: Matrix Message - Completed Build | ||
# uses: s3krit/[email protected] | ||
# with: | ||
# room_id: ${{ secrets.MATRIX_ROOM_ID }} | ||
# access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }} | ||
# message: "Completed FacsimiLab image build for tag ${{ steps.package.outputs.content }}" | ||
# server: "matrix.drpranavmishra.com" | ||
|
||
|
||
- name: Push Docker images | ||
|
@@ -68,10 +68,10 @@ jobs: | |
echo "$builder_header" > testing/results/job_summary.md | ||
cat testing/results/job_summary.md >> $GITHUB_STEP_SUMMARY | ||
- name: Matrix Message - Completed GitHub Action | ||
uses: s3krit/[email protected] | ||
with: | ||
room_id: ${{ secrets.MATRIX_ROOM_ID }} | ||
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }} | ||
message: "Completed FacsimiLab build github action for tag ${{ steps.package.outputs.content }}" | ||
server: "matrix.drpranavmishra.com" | ||
# - name: Matrix Message - Completed GitHub Action | ||
# uses: s3krit/[email protected] | ||
# with: | ||
# room_id: ${{ secrets.MATRIX_ROOM_ID }} | ||
# access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }} | ||
# message: "Completed FacsimiLab build github action for tag ${{ steps.package.outputs.content }}" | ||
# server: "matrix.drpranavmishra.com" |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Add issues and PRs to Facsimilab Development project | ||
|
||
on: | ||
issues: | ||
types: | ||
- opened | ||
pull_request: | ||
types: | ||
- opened | ||
|
||
jobs: | ||
add-to-project: | ||
name: Add issue and PR to project | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
# You can target a project in a different organization | ||
# to the issue | ||
project-url: https://github.com/orgs/FacsimiLab/projects/1 | ||
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} | ||
|