filter by ref #58
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: Docker Build Rdev | ||
on: | ||
<<<<<<< Updated upstream | ||
pull_request: | ||
types: [ labeled, synchronize ] | ||
paths: | ||
- 'apiv2/**' | ||
======= | ||
- push | ||
>>>>>>> Stashed changes | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
filter: | ||
runs-on: [ARM64, self-hosted, Linux] | ||
permissions: | ||
id-token: write | ||
issues: write | ||
pull-requests: write | ||
steps: | ||
- name: Calculate Branch and Base Names | ||
id: refs | ||
uses: chanzuckerberg/github-actions/.github/actions/[email protected] | ||
- uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
const [owner, repo] = '${{ github.repository }}'.split('/'); | ||
const prs = await github.rest.pulls.list({ | ||
owner, | ||
repo, | ||
head: `chanzuckerberg:${{ steps.refs.outputs.headRef }}`, | ||
}); | ||
console.log(JSON.stringify(prs.data, null, 2)); | ||
rdev_argus_builder: | ||
needs: filter | ||
uses: ./.github/workflows/workflow-argus-docker-build.yaml | ||
secrets: inherit | ||
with: | ||
envs: rdev | ||
path_filters: 'apiv2/**' |