Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
Create PR artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
edenhaus committed Oct 23, 2023
1 parent f9bc0f0 commit 8f599d3
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/pr-artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: PR atrifacts

on:
pull_request:
branches:
- dev

jobs:
# Main job
build:
permissions:
# Required to upload/save artifact, otherwise you'll get
# "Error: Resource not accessible by integration"
contents: write
# Required to post comment, otherwise you'll get
# "Error: Resource not accessible by integration"
pull-requests: write

runs-on: ubuntu-latest
steps:
- name: 📥 Checkout the repository
uses: actions/checkout@v4

- name: 📦 Create zip file for the integration
run: |
cd "${{ github.workspace }}/custom_components/deebot"
zip deebot.zip -r ./
- name: 📤 Create comment with the artifiactory
uses: gavv/pull-request-artifacts@v2
with:
# Commit hash that triggered PR
commit: ${{ github.event.pull_request.head.sha }}

# Token for current repo (used to post PR comment)
repo-token: ${{ secrets.GITHUB_TOKEN }}

# Whitespace-separated list of files to upload
artifacts: |
deebot.zip

0 comments on commit 8f599d3

Please sign in to comment.