summaryrefslogtreecommitdiff
path: root/.github/workflows/pull-request.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/pull-request.yml')
-rw-r--r--.github/workflows/pull-request.yml37
1 files changed, 37 insertions, 0 deletions
diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml
new file mode 100644
index 00000000..4ea7d10a
--- /dev/null
+++ b/.github/workflows/pull-request.yml
@@ -0,0 +1,37 @@
+name: "Check symlinks and build theme"
+
+on: pull_request
+
+jobs:
+ check:
+ name: Check for dangling symlinks
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Check out the repo
+ uses: actions/checkout@v2
+ - name: Check symlinks and build theme
+ shell: bash
+ run: |
+ sudo apt install -y libgtk-3-dev optipng --no-install-recommends
+ ./configure
+ make test
+ make
+ cd build
+ tar -cf elementary-xfce.tar.gz *
+ - name: Upload theme artifact
+ uses: actions/upload-artifact@v3
+ with:
+ name: elementary-xfce
+ path: build/elementary-xfce.tar.gz
+ - name: Add comment with link
+ uses: actions/github-script@v5
+ with:
+ github-token: ${{secrets.GITHUB_TOKEN}}
+ script: |
+ github.rest.issues.createComment({
+ issue_number: context.issue.number,
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ body: "Get the theme build from this PR for easy local testing: [elementary-xfce.zip](https://nightly.link/shimmerproject/elementary-xfce/actions/runs/${{ github.run_id }}/elementary-xfce.zip)"
+ })