Add information about the candidate channel #145
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: Build PR | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- labeled | |
jobs: | |
build_amd64: | |
runs-on: ubuntu-latest | |
if: | | |
github.event.pull_request.state == 'open' && | |
( | |
( | |
github.event.action == 'labeled' && | |
github.event.label.name == 'safe to publish' | |
) || | |
( | |
github.event.action != 'labeled' && | |
contains(github.event.pull_request.labels.*.name, 'safe to publish') | |
) | |
) | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install snapcraft | |
run: | | |
sudo snap install snapcraft --classic | |
- name: build snap | |
run: | | |
sudo snapcraft --destructive-mode | |
- name: save PR data | |
run: | | |
mkdir -p ./pr-data | |
echo '${{ github.event.number }}' > ./pr-data/pr-number | |
echo '${{ github.event.pull_request.head.sha }}' > ./pr-data/pr-commit | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: snap | |
path: freecad*.snap | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: pr-data | |
path: pr-data/ |