Title: Maven release workflow doesn't trigger on new tag worklow · Issue #537 · OpenSourceHelpCommunity/Questions · GitHub
Open Graph Title: Maven release workflow doesn't trigger on new tag worklow · Issue #537 · OpenSourceHelpCommunity/Questions
X Title: Maven release workflow doesn't trigger on new tag worklow · Issue #537 · OpenSourceHelpCommunity/Questions
Description: I have 2 workflows: a maven release workflow, triggered by workflow_dispatch a docker image creation supposed to be triggered by the aforementioned workflow (when a new tag is pushed) I shouldn't use GITHUB_TOKEN when expecting a workflo...
Open Graph Description: I have 2 workflows: a maven release workflow, triggered by workflow_dispatch a docker image creation supposed to be triggered by the aforementioned workflow (when a new tag is pushed) I shouldn't u...
X Description: I have 2 workflows: a maven release workflow, triggered by workflow_dispatch a docker image creation supposed to be triggered by the aforementioned workflow (when a new tag is pushed) I shouldn'...
Opengraph URL: https://github.com/OpenSourceHelpCommunity/Questions/issues/537
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Maven release workflow doesn't trigger on new tag worklow","articleBody":"I have 2 workflows:\r\n- a maven release workflow, triggered by workflow_dispatch\r\n- a docker image creation supposed to be triggered by the aforementioned workflow (when a new tag is pushed)\r\n\r\n[I shouldn't use GITHUB_TOKEN when expecting a workflow to call another workflow](https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/triggering-a-workflow#triggering-a-workflow-from-a-workflow), that's why I made my own Personal Access Token (PAS) and passed it in the first workflow (secrets.PAS_TOKEN).\r\n\r\nAm I correctly using the PAS token with the Maven command ?\r\n\r\nThe release goal executed by maven pushes new tags indeed.\r\n\r\nAs a matter of fact, **workflow_run** is pointless as it does not work with tags.\r\n\r\nThe maven release workflow YAML:\r\n```\r\nname: Java CI with Maven to release latest SNAPSHOT version\r\n\r\non:\r\n workflow_dispatch:\r\n\r\njobs:\r\n build:\r\n\r\n runs-on: ubuntu-latest\r\n\r\n steps:\r\n - uses: actions/checkout@v4\r\n - name: Set up JDK 17\r\n uses: actions/setup-java@v4\r\n with:\r\n java-version: '17'\r\n distribution: 'temurin'\r\n cache: maven\r\n - name: Configure Git user\r\n run: |\r\n git config user.email \"me@mail.com\"\r\n git config user.name \"Mohamed Ennahdi El Idrissi\"\r\n - name: Build with Maven\r\n run: mvn -B release:clean release:prepare release:perform --file pom.xml\r\n env:\r\n GITHUB_TOKEN: ${{ secrets.PAS_TOKEN }}\r\n```\r\n\r\nThe docker image creation workflow YAML:\r\n\r\n```\r\nname: Java CI with Maven to create and publish Docker image\r\n\r\non:\r\n push:\r\n tags:\r\n - '*'\r\n \r\njobs:\r\n build:\r\n\r\n runs-on: ubuntu-latest\r\n\r\n steps:\r\n - uses: actions/checkout@v4\r\n - name: Set up JDK 17\r\n uses: actions/setup-java@v4\r\n with:\r\n java-version: '17'\r\n distribution: 'temurin'\r\n cache: maven\r\n - name: Create docker image and push to docker hub (latest version)\r\n run: |\r\n echo $RELEASE_VERSION\r\n echo ${{ env.RELEASE_VERSION }}\r\n mvn -B spring-boot:build-image --file pom.xml\r\n```","author":{"url":"https://github.com/mohamed-ennahdi","@type":"Person","name":"mohamed-ennahdi"},"datePublished":"2024-11-28T09:50:01Z","url":"https://github.com/OpenSourceHelpCommunity/Questions/issues/537"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8462746b-dec0-f573-61cf-541b4b5a8b46 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB4E:1D20B7:FCCA6:13DFA3:6B00F7E6 |
| html-safe-nonce | fe57233a0b75edcd3a2a2a586446f4c371cd42a745858c2d0c29447faba66c6e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjRFOjFEMjBCNzpGQ0NBNjoxM0RGQTM6NkIwMEY3RTYiLCJ2aXNpdG9yX2lkIjoiNzM3MTM5MDc2NDkwOTEzMTc1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | facb95f7611aca2736d813d12b064754b9051833a50c2512d96292c6b9d1affc |
| hovercard-subject-tag | issue:2701553920 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/OpenSourceHelpCommunity/Questions/537/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d3a951a9d35bdef2a62b4c6ca8a51ac72f6a43a3c01734d7d32d320fa27bed33/OpenSourceHelpCommunity/Questions/issues/537 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d3a951a9d35bdef2a62b4c6ca8a51ac72f6a43a3c01734d7d32d320fa27bed33/OpenSourceHelpCommunity/Questions/issues/537 |
| og:image:alt | I have 2 workflows: a maven release workflow, triggered by workflow_dispatch a docker image creation supposed to be triggered by the aforementioned workflow (when a new tag is pushed) I shouldn't u... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mohamed-ennahdi |
| hostname | github.com |
| expected-hostname | github.com |
| None | e208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187 |
| turbo-cache-control | no-preview |
| go-import | github.com/OpenSourceHelpCommunity/Questions git https://github.com/OpenSourceHelpCommunity/Questions.git |
| octolytics-dimension-user_id | 23719480 |
| octolytics-dimension-user_login | OpenSourceHelpCommunity |
| octolytics-dimension-repository_id | 78395582 |
| octolytics-dimension-repository_nwo | OpenSourceHelpCommunity/Questions |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 78395582 |
| octolytics-dimension-repository_network_root_nwo | OpenSourceHelpCommunity/Questions |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7dafd017fb7809a839c443dba08622af38e63c09 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width