kandangit is testing out GitHub Actions 🚀 #30
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: GitHub Actions Demo | |
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 | |
on: | |
push: | |
pull_request: | |
jobs: | |
Expressions-Actions: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Només si el push que dispara el workflow és a la branca principal. | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | |
run: echo "PUSH A LA BRANCA MASTER" | |
- name: Només si el disparador és una pull request. | |
if: ${{ github.event_name == 'pull_request' }} | |
run: echo "S'HA FET UNA PULL REQUEST" |